Nearest named color · #05055B
#05055B
Nearest named color: Ravenclaw
#05055B (rgb(5 5 91), hsl(240 90% 19%), oklch(0.223 0.141 267)) is closest to the named color Ravenclaw. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#05055B
oklch(0.223 0.141 267)
Color conversions
- HEX
- #05055b
- RGB
- rgb(5 5 91)
- HSL
- hsl(240 90% 19%)
- HWB
- hwb(240 2% 64%)
- OKLCH
- oklch(0.223 0.141 267)
- OKLab
- oklab(0.223 -0.007 -0.141)
- CIE Lab
- lab(7.02 28.89 -50.19)
- LCH
- lch(7.02 57.91 299.9)
- CMYK
- cmyk(95% 95% 0% 64%)
Tints · Shades · Tones
Tints
- 12246C
- 273C7D
- 3E548E
- 576B9E
- 7183AF
- 8B9BBF
- A7B3CF
- C4CCDF
- E1E5EF
Shades
- 04044E
- 030341
- 020235
- 010129
- 01011E
- 000013
- 000009
- 000003
- 000000
Tones
- 0A1860
- 142665
- 203269
- 2C3E6D
- 394971
- 475475
- 555F78
- 636A7B
- 71757E
Color harmonies
Complementary +180°
- 05055B
Ravenclaw
- 241900
≈ Cannon Black
Analogous -30° +30°
- 05055B
Ravenclaw
- 001E2F
≈ Cyanophobia
- 24004B
≈ Your Darkness
Triadic +120° +240°
- 05055B
Ravenclaw
- 3C0002
≈ Charred Brown
- 002307
≈ Rainforest Nights
Split-complementary +150° +210°
- 05055B
Ravenclaw
- 2D1300
≈ Shadow Play
- 1A1E00
≈ Yuzu Soy
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 17.80:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.80:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--ravenclaw: #05055b;
--ravenclaw-rgb: 5 5 91;
--ravenclaw-oklch: oklch(0.223 0.141 267);
}
.element {
color: var(--ravenclaw);
background-color: hsl(240 90% 19%);
border-color: oklch(0.223 0.141 267);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #05055b;
--color-ravenclaw-50: #e4f4ff;
--color-ravenclaw-100: #d4e7ff;
--color-ravenclaw-200: #bbd2ff;
--color-ravenclaw-300: #9ab4ff;
--color-ravenclaw-400: #799af2;
--color-ravenclaw-500: #5c80e3;
--color-ravenclaw-600: #4e6cbf;
--color-ravenclaw-700: #3e579a;
--color-ravenclaw-800: #2a4073;
--color-ravenclaw-900: #1c2c51;
--color-ravenclaw-950: #0d1936;
}SCSS
$ravenclaw: #05055b;
$ravenclaw-rgb: 5, 5, 91;
$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);
}