#121F7F#121F7F
#121F7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.159 H 268.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).
Color values
| HEX | #121F7F |
|---|---|
| RGB | rgb(18, 31, 127) |
| HSL | hsl(233, 75%, 28%) |
| HSV | hsv(233, 86%, 50%) |
| CMYK | cmyk(85.8%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(18.54, 32.91, -54.78) |
| CIE-LCH | lch(18.54, 63.91, 301.00°) |
| OKLab | oklab(31.13% -0.0056 -0.1588) |
| OKLCH | oklch(31.13% 0.159 268) |
| XYZ | xyz(4.5689, 2.6403, 20.3434) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.71
Dark Royal Blue
#02066F
ΔE00 5.74
Darkblue
#00008B
ΔE00 6.08
Navy
#000080
ΔE00 6.10
Deep Blue
#040273
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#121F7F #7F7212
analogous
#12557F #121F7F #3B127F
triadic
#121F7F #7F121F #1F7F12
tetradic
#121F7F #7F1255 #7F7212 #127F3B
square
#121F7F #7F1255 #7F7212 #127F3B
split-complementary
#121F7F #7F3B12 #557F12
monochromatic
#04071B #0A1249 #121F7F #1A2CB5 #2B40E1
Accessibility & contrast
On white
13.74
#121F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#121F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #121F7F
13.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##121F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##121F7F | 1.00 | 13.74 | 1.53 | 13.74 |
| #FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #121f7f; /* rgb */ color: rgb(18, 31, 127); /* oklch */ color: oklch(31.1% 0.159 268.0);
Tailwind
colors: {
custom: {
50: '#675ba5',
500: '#121f7f',
950: '#000000',
},
}SCSS
$custom: #121f7f; $custom-light: #675ba5; $custom-dark: #000000;
JSON
{
"hex": "#121f7f",
"rgb": {
"r": 18,
"g": 31,
"b": 127
},
"hsl": {
"h": 232.844,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.31132,
"c": 0.15888,
"h": 268
},
"luminance": 0.02641
}Semantic roles & 50–950 ramp
primary
#121F7F
secondary
#B5A638
accent
#DB36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F