#1F267B#1F267B
#1F267B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.142 H 272.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1F267B |
|---|---|
| RGB | rgb(31, 38, 123) |
| HSL | hsl(235, 60%, 30%) |
| HSV | hsv(235, 75%, 48%) |
| CMYK | cmyk(74.8%, 69.1%, 0%, 51.8%) |
| CIE-LAB | lab(20.47, 28.04, -49.04) |
| CIE-LCH | lch(20.47, 56.49, 299.76°) |
| OKLab | oklab(32.58% 0.0049 -0.1418) |
| OKLCH | oklch(32.58% 0.142 272) |
| XYZ | xyz(4.8321, 3.1071, 19.0801) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.67
Royal
#0C1793
ΔE00 5.59
Dark Royal Blue
#02066F
ΔE00 7.55
Darkblue (survey)
#030764
ΔE00 7.89
Marine
#042E60
ΔE00 7.95
Deep Blue
#040273
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F267B #7B741F
analogous
#1F547B #1F267B #461F7B
triadic
#1F267B #7B1F26 #267B1F
tetradic
#1F267B #7B1F54 #7B741F #1F7B46
square
#1F267B #7B1F54 #7B741F #1F7B46
split-complementary
#1F267B #7B461F #547B1F
monochromatic
#060819 #13174A #1F267B #2B35AC #444FD0
Accessibility & contrast
On white
12.95
#1F267B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F267B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F267B
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F267B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F267B | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f267b; /* rgb */ color: rgb(31, 38, 123); /* oklch */ color: oklch(32.6% 0.142 272.0);
Tailwind
colors: {
custom: {
50: '#6a60a2',
500: '#1f267b',
950: '#000000',
},
}SCSS
$custom: #1f267b; $custom-light: #6a60a2; $custom-dark: #000000;
JSON
{
"hex": "#1f267b",
"rgb": {
"r": 31,
"g": 38,
"b": 123
},
"hsl": {
"h": 235.435,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.32579,
"c": 0.14186,
"h": 272
},
"luminance": 0.03108
}Semantic roles & 50–950 ramp
primary
#1F267B
secondary
#AEA648
accent
#D745E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F