#1F229C#1F229C
#1F229C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.189 H 270.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1F229C |
|---|---|
| RGB | rgb(31, 34, 156) |
| HSL | hsl(239, 67%, 37%) |
| HSV | hsv(239, 80%, 61%) |
| CMYK | cmyk(80.1%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(23.12, 42.32, -65.26) |
| CIE-LCH | lch(23.12, 77.78, 302.96°) |
| OKLab | oklab(35.53% 0.0019 -0.189) |
| OKLCH | oklch(35.53% 0.189 270.6) |
| XYZ | xyz(7.1358, 3.8349, 31.8102) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.81
Cobalt Blue
#030AA7
ΔE00 4.15
Indigo Blue
#3A18B1
ΔE00 4.48
Royal Blue (survey)
#0504AA
ΔE00 4.72
Ultramarine
#2000B1
ΔE00 5.15
Sapphire (survey)
#2138AB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F229C #9C991F
analogous
#1F619C #1F229C #5B1F9C
triadic
#1F229C #9C1F22 #229C1F
tetradic
#1F229C #9C1F61 #9C991F #1F9C5B
square
#1F229C #9C1F61 #9C991F #1F9C5B
split-complementary
#1F229C #9C5B1F #619C1F
monochromatic
#0B0C36 #151769 #1F229C #292DCF #585BDE
Accessibility & contrast
On white
11.88
#1F229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F229C
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F229C | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f229c; /* rgb */ color: rgb(31, 34, 156); /* oklch */ color: oklch(35.5% 0.189 270.6);
Tailwind
colors: {
custom: {
50: '#735fbb',
500: '#1f229c',
950: '#000000',
},
}SCSS
$custom: #1f229c; $custom-light: #735fbb; $custom-dark: #000000;
JSON
{
"hex": "#1f229c",
"rgb": {
"r": 31,
"g": 34,
"b": 156
},
"hsl": {
"h": 238.56,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.35529,
"c": 0.18901,
"h": 270.6
},
"luminance": 0.03836
}Semantic roles & 50–950 ramp
primary
#1F229C
secondary
#C1BF55
accent
#E63EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981