#1F227F#1F227F
#1F227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.152 H 272.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1F227F |
|---|---|
| RGB | rgb(31, 34, 127) |
| HSL | hsl(238, 61%, 31%) |
| HSV | hsv(238, 76%, 50%) |
| CMYK | cmyk(75.6%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(19.91, 32.14, -52.50) |
| CIE-LCH | lch(19.91, 61.55, 301.47°) |
| OKLab | oklab(32.3% 0.0069 -0.1519) |
| OKLCH | oklch(32.3% 0.152 272.6) |
| XYZ | xyz(4.9666, 2.9672, 20.3855) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.02
Royal
#0C1793
ΔE00 4.18
Dark Royal Blue
#02066F
ΔE00 6.47
Darkblue
#00008B
ΔE00 6.75
Navy
#000080
ΔE00 6.81
Deep Blue
#040273
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F227F #7F7C1F
analogous
#1F527F #1F227F #4C1F7F
triadic
#1F227F #7F1F22 #227F1F
tetradic
#1F227F #7F1F52 #7F7C1F #1F7F4C
square
#1F227F #7F1F52 #7F7C1F #1F7F4C
split-complementary
#1F227F #7F4C1F #527F1F
monochromatic
#07081D #13154E #1F227F #2B2FB0 #464BD2
Accessibility & contrast
On white
13.18
#1F227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1F227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F227F
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F227F | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f227f; /* rgb */ color: rgb(31, 34, 127); /* oklch */ color: oklch(32.3% 0.152 272.6);
Tailwind
colors: {
custom: {
50: '#6b5ea5',
500: '#1f227f',
950: '#000000',
},
}SCSS
$custom: #1f227f; $custom-light: #6b5ea5; $custom-dark: #000000;
JSON
{
"hex": "#1f227f",
"rgb": {
"r": 31,
"g": 34,
"b": 127
},
"hsl": {
"h": 238.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.323,
"c": 0.15203,
"h": 272.6
},
"luminance": 0.02968
}Semantic roles & 50–950 ramp
primary
#1F227F
secondary
#B2AF48
accent
#DF44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F