#31498F#31498F
#31498F is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.5% C 0.119 H 267.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #31498F |
|---|---|
| RGB | rgb(49, 73, 143) |
| HSL | hsl(225, 49%, 38%) |
| HSV | hsv(225, 66%, 56%) |
| CMYK | cmyk(65.7%, 49%, 0%, 43.9%) |
| CIE-LAB | lab(32.70, 14.60, -41.61) |
| CIE-LCH | lch(32.70, 44.10, 289.33°) |
| OKLab | oklab(42.51% -0.0062 -0.1191) |
| OKLCH | oklch(42.51% 0.119 267) |
| XYZ | xyz(8.6054, 7.4004, 26.9562) |
| Luminance | 0.0740 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.62
Cobalt
#0047AB
ΔE00 4.72
Dusk Blue
#26538D
ΔE00 5.01
Darkish Blue
#014182
ΔE00 5.25
Twilight Blue
#0A437A
ΔE00 5.82
Blueberry
#464196
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31498F #8F7731
analogous
#31788F #31498F #48318F
triadic
#31498F #8F3149 #498F31
tetradic
#31498F #8F3178 #8F7731 #318F48
square
#31498F #8F3178 #8F7731 #318F48
split-complementary
#31498F #8F4831 #788F31
monochromatic
#121A34 #213261 #31498F #4160BD #6D86CD
Accessibility & contrast
On white
8.47
#31498F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#31498F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31498F
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31498F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31498F | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#12498E
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #31498f; /* rgb */ color: rgb(49, 73, 143); /* oklch */ color: oklch(42.5% 0.119 267.0);
Tailwind
colors: {
custom: {
50: '#737bb0',
500: '#31498f',
950: '#000000',
},
}SCSS
$custom: #31498f; $custom-light: #737bb0; $custom-dark: #000000;
JSON
{
"hex": "#31498f",
"rgb": {
"r": 49,
"g": 73,
"b": 143
},
"hsl": {
"h": 224.681,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.42506,
"c": 0.11925,
"h": 267
},
"luminance": 0.07401
}Semantic roles & 50–950 ramp
primary
#31498F
secondary
#B5A167
accent
#B54FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F