#31438E#31438E
#31438E is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.126 H 269.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #31438E |
|---|---|
| RGB | rgb(49, 67, 142) |
| HSL | hsl(228, 49%, 37%) |
| HSV | hsv(228, 65%, 56%) |
| CMYK | cmyk(65.5%, 52.8%, 0%, 44.3%) |
| CIE-LAB | lab(30.92, 18.26, -43.86) |
| CIE-LCH | lch(30.92, 47.51, 292.61°) |
| OKLab | oklab(41.13% -0.0002 -0.1258) |
| OKLCH | oklch(41.13% 0.126 269.9) |
| XYZ | xyz(8.1546, 6.6196, 26.4339) |
| Luminance | 0.0662 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.93
Blueberry
#464196
ΔE00 4.52
Cobalt
#0047AB
ΔE00 5.33
Darkish Blue
#014182
ΔE00 5.70
Darkslateblue
#483D8B
ΔE00 5.71
Sapphire (survey)
#2138AB
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31438E #8E7C31
analogous
#31728E #31438E #4D318E
triadic
#31438E #8E3143 #438E31
tetradic
#31438E #8E3172 #8E7C31 #318E4D
square
#31438E #8E3172 #8E7C31 #318E4D
split-complementary
#31438E #8E4D31 #728E31
monochromatic
#121833 #212E61 #31438E #4158BB #6D7FCD
Accessibility & contrast
On white
9.04
#31438E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#31438E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31438E
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31438E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31438E | 1.00 | 9.04 | 2.32 | 9.04 |
| #FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #31438e; /* rgb */ color: rgb(49, 67, 142); /* oklch */ color: oklch(41.1% 0.126 269.9);
Tailwind
colors: {
custom: {
50: '#7376b0',
500: '#31438e',
950: '#000000',
},
}SCSS
$custom: #31438e; $custom-light: #7376b0; $custom-dark: #000000;
JSON
{
"hex": "#31438e",
"rgb": {
"r": 49,
"g": 67,
"b": 142
},
"hsl": {
"h": 228.387,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.41134,
"c": 0.12579,
"h": 269.9
},
"luminance": 0.0662
}Semantic roles & 50–950 ramp
primary
#31438E
secondary
#B4A567
accent
#BE50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F