#1F267C#1F267C
#1F267C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 271.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #1F267C |
|---|---|
| RGB | rgb(31, 38, 124) |
| HSL | hsl(235, 60%, 30%) |
| HSV | hsv(235, 75%, 49%) |
| CMYK | cmyk(75%, 69.4%, 0%, 51.4%) |
| CIE-LAB | lab(20.57, 28.41, -49.52) |
| CIE-LCH | lch(20.57, 57.09, 299.85°) |
| OKLab | oklab(32.68% 0.0048 -0.1432) |
| OKLCH | oklch(32.68% 0.143 271.9) |
| XYZ | xyz(4.8950, 3.1323, 19.4115) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.70
Royal
#0C1793
ΔE00 5.45
Dark Royal Blue
#02066F
ΔE00 7.54
Darkblue (survey)
#030764
ΔE00 7.92
Sapphire (survey)
#2138AB
ΔE00 7.99
Marine
#042E60
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F267C #7C751F
analogous
#1F547C #1F267C #461F7C
triadic
#1F267C #7C1F26 #267C1F
tetradic
#1F267C #7C1F54 #7C751F #1F7C46
square
#1F267C #7C1F54 #7C751F #1F7C46
split-complementary
#1F267C #7C461F #547C1F
monochromatic
#07081A #13174B #1F267C #2B35AD #454FD0
Accessibility & contrast
On white
12.91
#1F267C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F267C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F267C
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F267C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F267C | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f267c; /* rgb */ color: rgb(31, 38, 124); /* oklch */ color: oklch(32.7% 0.143 271.9);
Tailwind
colors: {
custom: {
50: '#6a60a3',
500: '#1f267c',
950: '#000000',
},
}SCSS
$custom: #1f267c; $custom-light: #6a60a3; $custom-dark: #000000;
JSON
{
"hex": "#1f267c",
"rgb": {
"r": 31,
"g": 38,
"b": 124
},
"hsl": {
"h": 235.484,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.3268,
"c": 0.14325,
"h": 271.9
},
"luminance": 0.03133
}Semantic roles & 50–950 ramp
primary
#1F267C
secondary
#AFA748
accent
#D745E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F