Nearest named color · #140455
#140455
Nearest named color: Ravenclaw
#140455 (rgb(20 4 85), hsl(252 91% 17%), oklch(0.223 0.13 277.4)) is closest to the named color Ravenclaw. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#140455
oklch(0.223 0.13 277.4)
Color conversions
- HEX
- #140455
- RGB
- rgb(20 4 85)
- HSL
- hsl(252 91% 17%)
- HWB
- hwb(252 2% 67%)
- OKLCH
- oklch(0.223 0.13 277.4)
- OKLab
- oklab(0.223 0.017 -0.129)
- CIE Lab
- lab(7.17 29.03 -45.83)
- LCH
- lch(7.17 54.25 302.3)
- CMYK
- cmyk(76% 95% 0% 67%)
Tints · Shades · Tones
Tints
- 232266
- 363A78
- 4B5189
- 62689A
- 7A80AB
- 9399BC
- ADB1CD
- C7CBDD
- E3E5EE
Shades
- 100349
- 0C023D
- 080131
- 050126
- 03011C
- 010011
- 010008
- 000002
- 000000
Tones
- 1B165A
- 232460
- 2C3065
- 373C69
- 42476E
- 4E5272
- 5A5E76
- 666979
- 73757D
Color harmonies
Complementary +180°
- 140455
Ravenclaw
- 211B00
≈ Cannon Black
Analogous -30° +30°
- 140455
Ravenclaw
- 001D35
≈ Cyanophobia
- 2A0043
≈ Your Darkness
Triadic +120° +240°
- 140455
Ravenclaw
- 360900
≈ Chocolate Melange
- 002211
≈ Clock Chimes Thirteen
Split-complementary +150° +210°
- 140455
Ravenclaw
- 2A1600
≈ Shadow Play
- 142000
≈ 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: #140455;
--ravenclaw-rgb: 20 4 85;
--ravenclaw-oklch: oklch(0.223 0.13 277.4);
}
.element {
color: var(--ravenclaw);
background-color: hsl(252 91% 17%);
border-color: oklch(0.223 0.13 277.4);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #140455;
--color-ravenclaw-50: #edf2ff;
--color-ravenclaw-100: #dee4ff;
--color-ravenclaw-200: #c8cfff;
--color-ravenclaw-300: #a9b0f9;
--color-ravenclaw-400: #8c96ea;
--color-ravenclaw-500: #727bda;
--color-ravenclaw-600: #6169b8;
--color-ravenclaw-700: #4d5494;
--color-ravenclaw-800: #363d6f;
--color-ravenclaw-900: #252a4e;
--color-ravenclaw-950: #141734;
}SCSS
$ravenclaw: #140455;
$ravenclaw-rgb: 20, 4, 85;
$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);
}