#31259F#31259F
#31259F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.185 H 277.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #31259F |
|---|---|
| RGB | rgb(49, 37, 159) |
| HSL | hsl(246, 62%, 38%) |
| HSV | hsv(246, 77%, 62%) |
| CMYK | cmyk(69.2%, 76.7%, 0%, 37.6%) |
| CIE-LAB | lab(25.19, 43.23, -63.63) |
| CIE-LCH | lch(25.19, 76.92, 304.19°) |
| OKLab | oklab(37.4% 0.0224 -0.1839) |
| OKLCH | oklch(37.4% 0.185 277) |
| XYZ | xyz(8.1842, 4.4786, 33.2273) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.51
Royal
#0C1793
ΔE00 4.31
Cobalt Blue
#030AA7
ΔE00 5.04
Ultramarine
#2000B1
ΔE00 5.37
Royal Blue (survey)
#0504AA
ΔE00 5.46
Sapphire (survey)
#2138AB
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31259F #939F25
analogous
#25569F #31259F #6E259F
triadic
#31259F #9F3125 #259F31
tetradic
#31259F #9F2556 #939F25 #259F6E
square
#31259F #9F2556 #939F25 #259F6E
split-complementary
#31259F #9F6E25 #569F25
monochromatic
#120E3C #22196D #31259F #4132CF #6F64DB
Accessibility & contrast
On white
11.08
#31259F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#31259F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31259F
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31259F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31259F | 1.00 | 11.08 | 1.90 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #31259f; /* rgb */ color: rgb(49, 37, 159); /* oklch */ color: oklch(37.4% 0.185 277.0);
Tailwind
colors: {
custom: {
50: '#7a62bd',
500: '#31259f',
950: '#000000',
},
}SCSS
$custom: #31259f; $custom-light: #7a62bd; $custom-dark: #000000;
JSON
{
"hex": "#31259f",
"rgb": {
"r": 49,
"g": 37,
"b": 159
},
"hsl": {
"h": 245.902,
"s": 62.245,
"l": 38.431
},
"oklch": {
"l": 0.37398,
"c": 0.18522,
"h": 277
},
"luminance": 0.04479
}Semantic roles & 50–950 ramp
primary
#31259F
secondary
#B7C05F
accent
#E542D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981