#1F3EAF#1F3EAF
#1F3EAF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.183 H 266.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3EAF |
|---|---|
| RGB | rgb(31, 62, 175) |
| HSL | hsl(227, 70%, 40%) |
| HSV | hsv(227, 82%, 69%) |
| CMYK | cmyk(82.3%, 64.6%, 0%, 31.4%) |
| CIE-LAB | lab(31.42, 31.83, -63.07) |
| CIE-LCH | lch(31.42, 70.65, 296.78°) |
| OKLab | oklab(42.11% -0.012 -0.1826) |
| OKLCH | oklch(42.11% 0.183 266.2) |
| XYZ | xyz(10.0228, 6.8305, 41.3393) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.89
Blue Blue
#2242C7
ΔE00 3.43
Cobalt
#0047AB
ΔE00 4.21
Ocean Blue
#4F42B5
ΔE00 5.92
Blueberry
#464196
ΔE00 6.05
Blue (survey)
#0343DF
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3EAF #AF901F
analogous
#1F86AF #1F3EAF #481FAF
triadic
#1F3EAF #AF1F3E #3EAF1F
tetradic
#1F3EAF #AF1F86 #AF901F #1FAF48
square
#1F3EAF #AF1F86 #AF901F #1FAF48
split-complementary
#1F3EAF #AF481F #86AF1F
monochromatic
#0D1947 #162C7B #1F3EAF #3155DA #6580E4
Accessibility & contrast
On white
8.87
#1F3EAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#1F3EAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3EAF
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3EAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3EAF | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1f3eaf; /* rgb */ color: rgb(31, 62, 175); /* oklch */ color: oklch(42.1% 0.183 266.2);
Tailwind
colors: {
custom: {
50: '#7573c8',
500: '#1f3eaf',
950: '#000000',
},
}SCSS
$custom: #1f3eaf; $custom-light: #7573c8; $custom-dark: #000000;
JSON
{
"hex": "#1f3eaf",
"rgb": {
"r": 31,
"g": 62,
"b": 175
},
"hsl": {
"h": 227.083,
"s": 69.903,
"l": 40.392
},
"oklch": {
"l": 0.42105,
"c": 0.183,
"h": 266.2
},
"luminance": 0.06832
}Semantic roles & 50–950 ramp
primary
#1F3EAF
secondary
#C9B261
accent
#C63BED
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82