#1F127B#1F127B
#1F127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 275.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F127B |
|---|---|
| RGB | rgb(31, 18, 123) |
| HSL | hsl(247, 74%, 28%) |
| HSV | hsv(247, 85%, 48%) |
| CMYK | cmyk(74.8%, 85.4%, 0%, 51.8%) |
| CIE-LAB | lab(16.27, 39.81, -55.96) |
| CIE-LCH | lch(16.27, 68.68, 305.43°) |
| OKLab | oklab(29.6% 0.0155 -0.1618) |
| OKLCH | oklch(29.6% 0.163 275.5) |
| XYZ | xyz(4.3554, 2.1536, 18.9212) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.83
Dark Royal Blue
#02066F
ΔE00 3.30
Navy
#000080
ΔE00 3.38
Deep Blue
#040273
ΔE00 3.39
Royal
#0C1793
ΔE00 3.73
Darkblue
#00008B
ΔE00 3.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F127B #6E7B12
analogous
#12397B #1F127B #54127B
triadic
#1F127B #7B1F12 #127B1F
tetradic
#1F127B #7B1239 #6E7B12 #127B54
square
#1F127B #7B1239 #6E7B12 #127B54
split-complementary
#1F127B #7B5412 #397B12
monochromatic
#07041B #120A46 #1F127B #2C1AB0 #3F28E0
Accessibility & contrast
On white
14.68
#1F127B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F127B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F127B
14.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F127B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F127B | 1.00 | 14.68 | 1.43 | 14.68 |
| #FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f127b; /* rgb */ color: rgb(31, 18, 123); /* oklch */ color: oklch(29.6% 0.163 275.5);
Tailwind
colors: {
custom: {
50: '#6c54a2',
500: '#1f127b',
950: '#000000',
},
}SCSS
$custom: #1f127b; $custom-light: #6c54a2; $custom-dark: #000000;
JSON
{
"hex": "#1f127b",
"rgb": {
"r": 31,
"g": 18,
"b": 123
},
"hsl": {
"h": 247.429,
"s": 74.468,
"l": 27.647
},
"oklch": {
"l": 0.29601,
"c": 0.16252,
"h": 275.5
},
"luminance": 0.02154
}Semantic roles & 50–950 ramp
primary
#1F127B
secondary
#A2B138
accent
#F137DA
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F