Nearest named color · #1B0450
#1B0450
Nearest named color: Ravenclaw
#1B0450 (rgb(27 4 80), hsl(258 90% 16%), oklch(0.223 0.122 285)) is closest to the named color Ravenclaw. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#1B0450
oklch(0.223 0.122 285)
Color conversions
- HEX
- #1b0450
- RGB
- rgb(27 4 80)
- HSL
- hsl(258 90% 16%)
- HWB
- hwb(258 2% 69%)
- OKLCH
- oklch(0.223 0.122 285)
- OKLab
- oklab(0.223 0.032 -0.118)
- CIE Lab
- lab(7.38 28.64 -42.02)
- LCH
- lch(7.38 50.85 304.3)
- CMYK
- cmyk(66% 95% 0% 69%)
Tints · Shades · Tones
Tints
- 2B2162
- 3E3873
- 524F85
- 686796
- 7F7FA7
- 9797B9
- B0B1CA
- CACADC
- E4E4ED
Shades
- 160344
- 110239
- 0C012E
- 080124
- 05011A
- 020010
- 010007
- 000002
- 000000
Tones
- 221556
- 2A235B
- 332F61
- 3D3A66
- 47466B
- 52516F
- 5D5D74
- 686978
- 74747C
Color harmonies
Complementary +180°
- 1B0450
Ravenclaw
- 1F1C00
≈ Liquorice Root
Analogous -30° +30°
- 1B0450
Ravenclaw
- 001A3C
≈ Maastricht Blue
- 2D003D
≈ Midnight Purple
Triadic +120° +240°
- 1B0450
Ravenclaw
- 320F00
≈ Chocolate Melange
- 002216
≈ Clock Chimes Thirteen
Split-complementary +150° +210°
- 1B0450
Ravenclaw
- 281800
≈ Cannon Black
- 0C2100
≈ Yuzu Soy
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 17.79:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.79:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--ravenclaw: #1b0450;
--ravenclaw-rgb: 27 4 80;
--ravenclaw-oklch: oklch(0.223 0.122 285);
}
.element {
color: var(--ravenclaw);
background-color: hsl(258 90% 16%);
border-color: oklch(0.223 0.122 285);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #1b0450;
--color-ravenclaw-50: #f2f1ff;
--color-ravenclaw-100: #e4e2ff;
--color-ravenclaw-200: #d0cdff;
--color-ravenclaw-300: #b3aef3;
--color-ravenclaw-400: #9794e4;
--color-ravenclaw-500: #7f78d3;
--color-ravenclaw-600: #6b66b2;
--color-ravenclaw-700: #56528f;
--color-ravenclaw-800: #3d3c6b;
--color-ravenclaw-900: #2a294b;
--color-ravenclaw-950: #181732;
}SCSS
$ravenclaw: #1b0450;
$ravenclaw-rgb: 27, 4, 80;
$ravenclaw-light: mix(#fff, $ravenclaw, 20%);
$ravenclaw-dark: mix(#000, $ravenclaw, 20%);
.element {
color: $ravenclaw;
box-shadow: 0 0 0 2px rgba($ravenclaw, 0.35);
}