#1F226E#1F226E
#1F226E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.129 H 274.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F226E |
|---|---|
| RGB | rgb(31, 34, 110) |
| HSL | hsl(238, 56%, 28%) |
| HSV | hsv(238, 72%, 43%) |
| CMYK | cmyk(71.8%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(18.19, 25.82, -44.42) |
| CIE-LCH | lch(18.19, 51.38, 300.17°) |
| OKLab | oklab(30.53% 0.0091 -0.1283) |
| OKLCH | oklch(30.53% 0.129 274.1) |
| XYZ | xyz(3.9506, 2.5608, 15.0349) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.73
Darkblue (survey)
#030764
ΔE00 6.71
Royal
#0C1793
ΔE00 6.82
Dark Royal Blue
#02066F
ΔE00 6.84
Dark Indigo
#1F0954
ΔE00 7.29
Deep Blue
#040273
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F226E #6E6B1F
analogous
#1F496E #1F226E #441F6E
triadic
#1F226E #6E1F22 #226E1F
tetradic
#1F226E #6E1F49 #6E6B1F #1F6E44
square
#1F226E #6E1F49 #6E6B1F #1F6E44
split-complementary
#1F226E #6E441F #496E1F
monochromatic
#070718 #12133E #1F226E #2C319E #3F44C9
Accessibility & contrast
On white
13.89
#1F226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1F226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F226E
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F226E | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1f226e; /* rgb */ color: rgb(31, 34, 110); /* oklch */ color: oklch(30.5% 0.129 274.1);
Tailwind
colors: {
custom: {
50: '#675d98',
500: '#1f226e',
950: '#000000',
},
}SCSS
$custom: #1f226e; $custom-light: #675d98; $custom-dark: #000000;
JSON
{
"hex": "#1f226e",
"rgb": {
"r": 31,
"g": 34,
"b": 110
},
"hsl": {
"h": 237.722,
"s": 56.028,
"l": 27.647
},
"oklch": {
"l": 0.30534,
"c": 0.12859,
"h": 274.1
},
"luminance": 0.02561
}Semantic roles & 50–950 ramp
primary
#1F226E
secondary
#A29F47
accent
#DA48DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E