Nearest named color · #0C0558
#0C0558
Nearest named color: Ravenclaw
#0C0558 (rgb(12 5 88), hsl(245 89% 18%), oklch(0.222 0.135 271.1)) is closest to the named color Ravenclaw. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#0C0558
oklch(0.222 0.135 271.1)
Color conversions
- HEX
- #0c0558
- RGB
- rgb(12 5 88)
- HSL
- hsl(245 89% 18%)
- HWB
- hwb(245 2% 65%)
- OKLCH
- oklch(0.222 0.135 271.1)
- OKLab
- oklab(0.222 0.003 -0.135)
- CIE Lab
- lab(7.07 28.51 -48.06)
- LCH
- lch(7.07 55.88 300.7)
- CMYK
- cmyk(86% 94% 0% 65%)
Tints · Shades · Tones
Tints
- 1A2369
- 2E3B7A
- 44538B
- 5B6A9C
- 7482AD
- 8E9ABD
- A9B2CE
- C5CBDE
- E2E5EF
Shades
- 09044B
- 06033F
- 040233
- 030128
- 02011D
- 010012
- 000009
- 000003
- 000000
Tones
- 12185D
- 1B2562
- 263167
- 313D6B
- 3D486F
- 4A5373
- 575F77
- 646A7A
- 72757D
Color harmonies
Complementary +180°
- 0C0558
Ravenclaw
- 231A00
≈ Cannon Black
Analogous -30° +30°
- 0C0558
Ravenclaw
- 001D31
≈ Cyanophobia
- 260047
≈ Your Darkness
Triadic +120° +240°
- 0C0558
Ravenclaw
- 3A0300
≈ Biltong
- 00230C
≈ Clock Chimes Thirteen
Split-complementary +150° +210°
- 0C0558
Ravenclaw
- 2C1400
≈ Shadow Play
- 181F00
≈ Yuzu Soy
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 17.82:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.82:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--ravenclaw: #0c0558;
--ravenclaw-rgb: 12 5 88;
--ravenclaw-oklch: oklch(0.222 0.135 271.1);
}
.element {
color: var(--ravenclaw);
background-color: hsl(245 89% 18%);
border-color: oklch(0.222 0.135 271.1);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #0c0558;
--color-ravenclaw-50: #e8f3ff;
--color-ravenclaw-100: #d9e6ff;
--color-ravenclaw-200: #c1d1ff;
--color-ravenclaw-300: #a1b3fd;
--color-ravenclaw-400: #8199ee;
--color-ravenclaw-500: #667edf;
--color-ravenclaw-600: #576bbc;
--color-ravenclaw-700: #455597;
--color-ravenclaw-800: #2f3f71;
--color-ravenclaw-900: #202b4f;
--color-ravenclaw-950: #101835;
}SCSS
$ravenclaw: #0c0558;
$ravenclaw-rgb: 12, 5, 88;
$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);
}