#2D397F#2D397F
#2D397F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.118 H 272.1°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2D397F |
|---|---|
| RGB | rgb(45, 57, 127) |
| HSL | hsl(231, 48%, 34%) |
| HSV | hsv(231, 65%, 50%) |
| CMYK | cmyk(64.6%, 55.1%, 0%, 50.2%) |
| CIE-LAB | lab(26.78, 18.75, -41.25) |
| CIE-LCH | lch(26.78, 45.32, 294.44°) |
| OKLab | oklab(37.6% 0.0044 -0.1183) |
| OKLCH | oklch(37.6% 0.118 272.1) |
| XYZ | xyz(6.3748, 5.0159, 20.7068) |
| Luminance | 0.0502 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.26
Blueberry
#464196
ΔE00 5.48
Cobalt (survey)
#1E488F
ΔE00 6.55
Darkish Blue
#014182
ΔE00 6.70
Sapphire (survey)
#2138AB
ΔE00 6.87
Marine
#042E60
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D397F #7F732D
analogous
#2D627F #2D397F #4A2D7F
triadic
#2D397F #7F2D39 #397F2D
tetradic
#2D397F #7F2D62 #7F732D #2D7F4A
square
#2D397F #7F2D62 #7F732D #2D7F4A
split-complementary
#2D397F #7F4A2D #627F2D
monochromatic
#0D1025 #1D2552 #2D397F #3D4DAC #606FC7
Accessibility & contrast
On white
10.48
#2D397F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#2D397F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D397F
10.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D397F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D397F | 1.00 | 10.48 | 2.00 | 10.48 |
| #FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2d397f; /* rgb */ color: rgb(45, 57, 127); /* oklch */ color: oklch(37.6% 0.118 272.1);
Tailwind
colors: {
custom: {
50: '#6f6fa5',
500: '#2d397f',
950: '#000000',
},
}SCSS
$custom: #2d397f; $custom-light: #6f6fa5; $custom-dark: #000000;
JSON
{
"hex": "#2d397f",
"rgb": {
"r": 45,
"g": 57,
"b": 127
},
"hsl": {
"h": 231.22,
"s": 47.674,
"l": 33.725
},
"oklch": {
"l": 0.37596,
"c": 0.11843,
"h": 272.1
},
"luminance": 0.05016
}Semantic roles & 50–950 ramp
primary
#2D397F
secondary
#ADA15B
accent
#C451D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F