#1F226F#1F226F
#1F226F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.130 H 274.0°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F226F |
|---|---|
| RGB | rgb(31, 34, 111) |
| HSL | hsl(238, 56%, 28%) |
| HSV | hsv(238, 72%, 44%) |
| CMYK | cmyk(72.1%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(18.29, 26.20, -44.91) |
| CIE-LCH | lch(18.29, 52.00, 300.26°) |
| OKLab | oklab(30.63% 0.009 -0.1297) |
| OKLCH | oklch(30.63% 0.13 274) |
| XYZ | xyz(4.0054, 2.5827, 15.3233) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 6.65
Darkblue (survey)
#030764
ΔE00 6.69
Dark Royal Blue
#02066F
ΔE00 6.78
Dark Indigo
#1F0954
ΔE00 7.35
Deep Blue
#040273
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F226F #6F6C1F
analogous
#1F4A6F #1F226F #441F6F
triadic
#1F226F #6F1F22 #226F1F
tetradic
#1F226F #6F1F4A #6F6C1F #1F6F44
square
#1F226F #6F1F4A #6F6C1F #1F6F44
split-complementary
#1F226F #6F441F #4A6F1F
monochromatic
#070718 #12133F #1F226F #2C319F #3F44C9
Accessibility & contrast
On white
13.85
#1F226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F226F
13.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F226F | 1.00 | 13.85 | 1.52 | 13.85 |
| #FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f226f; /* rgb */ color: rgb(31, 34, 111); /* oklch */ color: oklch(30.6% 0.130 274.0);
Tailwind
colors: {
custom: {
50: '#675d99',
500: '#1f226f',
950: '#000000',
},
}SCSS
$custom: #1f226f; $custom-light: #675d99; $custom-dark: #000000;
JSON
{
"hex": "#1f226f",
"rgb": {
"r": 31,
"g": 34,
"b": 111
},
"hsl": {
"h": 237.75,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.30634,
"c": 0.13001,
"h": 274
},
"luminance": 0.02583
}Semantic roles & 50–950 ramp
primary
#1F226F
secondary
#A3A047
accent
#DA48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E