Nearest named color · #120457
#120457
Nearest named color: Ravenclaw
#120457 (rgb(18 4 87), hsl(250 91% 18%), oklch(0.224 0.133 275.4)) is closest to the named color Ravenclaw. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#120457
oklch(0.224 0.133 275.4)
Color conversions
- HEX
- #120457
- RGB
- rgb(18 4 87)
- HSL
- hsl(250 91% 18%)
- HWB
- hwb(250 2% 66%)
- OKLCH
- oklch(0.224 0.133 275.4)
- OKLab
- oklab(0.224 0.012 -0.132)
- CIE Lab
- lab(7.22 29.38 -47.11)
- LCH
- lch(7.22 55.52 301.9)
- CMYK
- cmyk(79% 95% 0% 66%)
Tints · Shades · Tones
Tints
- 212268
- 333A79
- 49528A
- 60699B
- 7881AC
- 9199BD
- ACB2CD
- C7CBDE
- E3E5EE
Shades
- 0E034B
- 0A023E
- 070133
- 040127
- 02011C
- 010012
- 010008
- 000003
- 000000
Tones
- 18175C
- 212461
- 2B3166
- 353C6B
- 41486F
- 4D5373
- 595E77
- 66697A
- 73757D
Color harmonies
Complementary +180°
- 120457
Ravenclaw
- 221B00
≈ Cannon Black
Analogous -30° +30°
- 120457
Ravenclaw
- 001D34
≈ Cyanophobia
- 290045
≈ Your Darkness
Triadic +120° +240°
- 120457
Ravenclaw
- 380800
≈ Red Bean
- 002310
≈ Clock Chimes Thirteen
Split-complementary +150° +210°
- 120457
Ravenclaw
- 2B1600
≈ Shadow Play
- 152000
≈ Yuzu Soy
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 17.78:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.18:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.78:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--ravenclaw: #120457;
--ravenclaw-rgb: 18 4 87;
--ravenclaw-oklch: oklch(0.224 0.133 275.4);
}
.element {
color: var(--ravenclaw);
background-color: hsl(250 91% 18%);
border-color: oklch(0.224 0.133 275.4);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #120457;
--color-ravenclaw-50: #ebf2ff;
--color-ravenclaw-100: #dce5ff;
--color-ravenclaw-200: #c6d0ff;
--color-ravenclaw-300: #a6b1fb;
--color-ravenclaw-400: #8897ec;
--color-ravenclaw-500: #6e7cdd;
--color-ravenclaw-600: #5e69ba;
--color-ravenclaw-700: #4b5496;
--color-ravenclaw-800: #343e70;
--color-ravenclaw-900: #232a4f;
--color-ravenclaw-950: #131834;
}SCSS
$ravenclaw: #120457;
$ravenclaw-rgb: 18, 4, 87;
$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);
}