#1F267F#1F267F
#1F267F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.147 H 271.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #1F267F |
|---|---|
| RGB | rgb(31, 38, 127) |
| HSL | hsl(236, 61%, 31%) |
| HSV | hsv(236, 76%, 50%) |
| CMYK | cmyk(75.6%, 70.1%, 0%, 50.2%) |
| CIE-LAB | lab(20.86, 29.54, -50.93) |
| CIE-LCH | lch(20.86, 58.88, 300.11°) |
| OKLab | oklab(32.99% 0.0045 -0.1473) |
| OKLCH | oklch(32.99% 0.147 271.7) |
| XYZ | xyz(5.0877, 3.2093, 20.4259) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.85
Royal
#0C1793
ΔE00 5.06
Dark Royal Blue
#02066F
ΔE00 7.54
Sapphire (survey)
#2138AB
ΔE00 7.64
Darkblue
#00008B
ΔE00 7.87
Cobalt Blue
#030AA7
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F267F #7F781F
analogous
#1F567F #1F267F #481F7F
triadic
#1F267F #7F1F26 #267F1F
tetradic
#1F267F #7F1F56 #7F781F #1F7F48
square
#1F267F #7F1F56 #7F781F #1F7F48
split-complementary
#1F267F #7F481F #567F1F
monochromatic
#07091D #13174E #1F267F #2B35B0 #4651D2
Accessibility & contrast
On white
12.79
#1F267F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F267F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F267F
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F267F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F267F | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f267f; /* rgb */ color: rgb(31, 38, 127); /* oklch */ color: oklch(33.0% 0.147 271.7);
Tailwind
colors: {
custom: {
50: '#6b60a5',
500: '#1f267f',
950: '#000000',
},
}SCSS
$custom: #1f267f; $custom-light: #6b60a5; $custom-dark: #000000;
JSON
{
"hex": "#1f267f",
"rgb": {
"r": 31,
"g": 38,
"b": 127
},
"hsl": {
"h": 235.625,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.32987,
"c": 0.14737,
"h": 271.7
},
"luminance": 0.0321
}Semantic roles & 50–950 ramp
primary
#1F267F
secondary
#B2AA48
accent
#D844E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F