#1F227B#1F227B
#1F227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.147 H 272.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F227B |
|---|---|
| RGB | rgb(31, 34, 123) |
| HSL | hsl(238, 60%, 30%) |
| HSV | hsv(238, 75%, 48%) |
| CMYK | cmyk(74.8%, 72.4%, 0%, 51.8%) |
| CIE-LAB | lab(19.49, 30.67, -50.64) |
| CIE-LCH | lch(19.49, 59.21, 301.20°) |
| OKLab | oklab(31.87% 0.0075 -0.1465) |
| OKLCH | oklch(31.87% 0.147 272.9) |
| XYZ | xyz(4.7111, 2.8649, 19.0398) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.67
Royal
#0C1793
ΔE00 4.74
Dark Royal Blue
#02066F
ΔE00 6.42
Darkblue (survey)
#030764
ΔE00 6.87
Deep Blue
#040273
ΔE00 6.92
Navy
#000080
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F227B #7B781F
analogous
#1F507B #1F227B #4A1F7B
triadic
#1F227B #7B1F22 #227B1F
tetradic
#1F227B #7B1F50 #7B781F #1F7B4A
square
#1F227B #7B1F50 #7B781F #1F7B4A
split-complementary
#1F227B #7B4A1F #507B1F
monochromatic
#060719 #13144A #1F227B #2B30AC #4449D0
Accessibility & contrast
On white
13.35
#1F227B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F227B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F227B
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F227B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F227B | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f227b; /* rgb */ color: rgb(31, 34, 123); /* oklch */ color: oklch(31.9% 0.147 272.9);
Tailwind
colors: {
custom: {
50: '#6a5da2',
500: '#1f227b',
950: '#000000',
},
}SCSS
$custom: #1f227b; $custom-light: #6a5da2; $custom-dark: #000000;
JSON
{
"hex": "#1f227b",
"rgb": {
"r": 31,
"g": 34,
"b": 123
},
"hsl": {
"h": 238.043,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.31875,
"c": 0.14665,
"h": 272.9
},
"luminance": 0.02865
}Semantic roles & 50–950 ramp
primary
#1F227B
secondary
#AEAB48
accent
#DE45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F