#1F268C#1F268C
#1F268C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.165 H 271.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F268C |
|---|---|
| RGB | rgb(31, 38, 140) |
| HSL | hsl(236, 64%, 34%) |
| HSV | hsv(236, 78%, 55%) |
| CMYK | cmyk(77.9%, 72.9%, 0%, 45.1%) |
| CIE-LAB | lab(22.20, 34.34, -56.90) |
| CIE-LCH | lch(22.20, 66.46, 301.11°) |
| OKLab | oklab(34.35% 0.0029 -0.1647) |
| OKLCH | oklch(34.35% 0.165 271) |
| XYZ | xyz(5.9902, 3.5703, 25.1793) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.78
Midnight Blue
#191970
ΔE00 5.05
Sapphire (survey)
#2138AB
ΔE00 6.28
Cobalt Blue
#030AA7
ΔE00 6.33
Indigo Blue
#3A18B1
ΔE00 6.92
Royal Blue (survey)
#0504AA
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F268C #8C851F
analogous
#1F5C8C #1F268C #4E1F8C
triadic
#1F268C #8C1F26 #268C1F
tetradic
#1F268C #8C1F5C #8C851F #1F8C4E
square
#1F268C #8C1F5C #8C851F #1F8C4E
split-complementary
#1F268C #8C4E1F #5C8C1F
monochromatic
#090B28 #14185A #1F268C #2A34BE #4E57D8
Accessibility & contrast
On white
12.25
#1F268C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F268C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F268C
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F268C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F268C | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f268c; /* rgb */ color: rgb(31, 38, 140); /* oklch */ color: oklch(34.4% 0.165 271.0);
Tailwind
colors: {
custom: {
50: '#6e61af',
500: '#1f268c',
950: '#000000',
},
}SCSS
$custom: #1f268c; $custom-light: #6e61af; $custom-dark: #000000;
JSON
{
"hex": "#1f268c",
"rgb": {
"r": 31,
"g": 38,
"b": 140
},
"hsl": {
"h": 236.147,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.34352,
"c": 0.16476,
"h": 271
},
"luminance": 0.03571
}Semantic roles & 50–950 ramp
primary
#1F268C
secondary
#BBB34C
accent
#DC41E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F