#31438F#31438F
#31438F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.2% C 0.127 H 270.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #31438F |
|---|---|
| RGB | rgb(49, 67, 143) |
| HSL | hsl(229, 49%, 38%) |
| HSV | hsv(229, 66%, 56%) |
| CMYK | cmyk(65.7%, 53.1%, 0%, 43.9%) |
| CIE-LAB | lab(31.00, 18.63, -44.36) |
| CIE-LCH | lch(31.00, 48.12, 292.79°) |
| OKLab | oklab(41.21% -0.0001 -0.1273) |
| OKLCH | oklch(41.21% 0.127 270) |
| XYZ | xyz(8.2300, 6.6497, 26.8311) |
| Luminance | 0.0665 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.96
Blueberry
#464196
ΔE00 4.45
Cobalt
#0047AB
ΔE00 5.23
Darkslateblue
#483D8B
ΔE00 5.70
Darkish Blue
#014182
ΔE00 5.76
Sapphire (survey)
#2138AB
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31438F #8F7D31
analogous
#31728F #31438F #4E318F
triadic
#31438F #8F3143 #438F31
tetradic
#31438F #8F3172 #8F7D31 #318F4E
square
#31438F #8F3172 #8F7D31 #318F4E
split-complementary
#31438F #8F4E31 #728F31
monochromatic
#121834 #212E61 #31438F #4158BD #6D80CD
Accessibility & contrast
On white
9.01
#31438F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#31438F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31438F
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31438F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31438F | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #31438f; /* rgb */ color: rgb(49, 67, 143); /* oklch */ color: oklch(41.2% 0.127 270.0);
Tailwind
colors: {
custom: {
50: '#7476b0',
500: '#31438f',
950: '#000000',
},
}SCSS
$custom: #31438f; $custom-light: #7476b0; $custom-dark: #000000;
JSON
{
"hex": "#31438f",
"rgb": {
"r": 49,
"g": 67,
"b": 143
},
"hsl": {
"h": 228.511,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.41211,
"c": 0.12726,
"h": 270
},
"luminance": 0.0665
}Semantic roles & 50–950 ramp
primary
#31438F
secondary
#B5A667
accent
#BE4FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F