#0C0F4F#0C0F4F
#0C0F4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.113 H 270.9°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).
Color values
| HEX | #0C0F4F |
|---|---|
| RGB | rgb(12, 15, 79) |
| HSL | hsl(237, 74%, 18%) |
| HSV | hsv(237, 85%, 31%) |
| CMYK | cmyk(84.8%, 81%, 0%, 69%) |
| CIE-LAB | lab(8.86, 24.46, -39.10) |
| CIE-LCH | lch(8.86, 46.12, 302.02°) |
| OKLab | oklab(22.46% 0.0017 -0.1132) |
| OKLCH | oklch(22.46% 0.113 270.9) |
| XYZ | xyz(1.7332, 0.9841, 7.4942) |
| Luminance | 0.0098 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Night Blue
#040348
ΔE00 2.65
Navy Blue (survey)
#001146
ΔE00 2.99
Dark Indigo
#1F0954
ΔE00 3.68
Dark Blue
#00035B
ΔE00 4.39
Darkblue (survey)
#030764
ΔE00 4.78
Midnight Blue (survey)
#020035
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C0F4F #4F4C0C
analogous
#0C314F #0C0F4F #2A0C4F
triadic
#0C0F4F #4F0C0F #0F4F0C
tetradic
#0C0F4F #4F0C31 #4F4C0C #0C4F2A
square
#0C0F4F #4F0C31 #4F4C0C #0C4F2A
split-complementary
#0C0F4F #4F2A0C #314F0C
monochromatic
#04051B #04051B #0C0F4F #141984 #1C23B9
Accessibility & contrast
On white
17.55
#0C0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.20
#0C0F4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C0F4F
17.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C0F4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C0F4F | 1.00 | 17.55 | 1.20 | 17.55 |
| #FFFFFF | 17.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00164E
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#191919
Design tokens & code
CSS
--color: #0c0f4f; /* rgb */ color: rgb(12, 15, 79); /* oklch */ color: oklch(22.5% 0.113 270.9);
Tailwind
colors: {
custom: {
50: '#594e81',
500: '#0c0f4f',
950: '#000000',
},
}SCSS
$custom: #0c0f4f; $custom-light: #594e81; $custom-dark: #000000;
JSON
{
"hex": "#0c0f4f",
"rgb": {
"r": 12,
"g": 15,
"b": 79
},
"hsl": {
"h": 237.313,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.22458,
"c": 0.11324,
"h": 270.9
},
"luminance": 0.00984
}Semantic roles & 50–950 ramp
primary
#0C0F4F
secondary
#8B862C
accent
#E838F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C