#2D307F#2D307F
#2D307F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.131 H 275.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2D307F |
|---|---|
| RGB | rgb(45, 48, 127) |
| HSL | hsl(238, 48%, 34%) |
| HSV | hsv(238, 65%, 50%) |
| CMYK | cmyk(64.6%, 62.2%, 0%, 50.2%) |
| CIE-LAB | lab(24.33, 24.89, -45.22) |
| CIE-LCH | lch(24.33, 51.62, 298.83°) |
| OKLab | oklab(35.77% 0.0135 -0.1301) |
| OKLCH | oklch(35.77% 0.131 275.9) |
| XYZ | xyz(5.9687, 4.2036, 20.5714) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.37
Blueberry
#464196
ΔE00 6.20
Midnight Blue
#191970
ΔE00 6.47
Sapphire (survey)
#2138AB
ΔE00 6.86
Royal
#0C1793
ΔE00 7.69
Marine
#042E60
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D307F #7F7C2D
analogous
#2D597F #2D307F #532D7F
triadic
#2D307F #7F2D30 #307F2D
tetradic
#2D307F #7F2D59 #7F7C2D #2D7F53
square
#2D307F #7F2D59 #7F7C2D #2D7F53
split-complementary
#2D307F #7F532D #597F2D
monochromatic
#0D0E25 #1D1F52 #2D307F #3D41AC #6064C7
Accessibility & contrast
On white
11.41
#2D307F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2D307F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D307F
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D307F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D307F | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2d307f; /* rgb */ color: rgb(45, 48, 127); /* oklch */ color: oklch(35.8% 0.131 275.9);
Tailwind
colors: {
custom: {
50: '#7068a5',
500: '#2d307f',
950: '#000000',
},
}SCSS
$custom: #2d307f; $custom-light: #7068a5; $custom-dark: #000000;
JSON
{
"hex": "#2d307f",
"rgb": {
"r": 45,
"g": 48,
"b": 127
},
"hsl": {
"h": 237.805,
"s": 47.674,
"l": 33.725
},
"oklch": {
"l": 0.35773,
"c": 0.13081,
"h": 275.9
},
"luminance": 0.04204
}Semantic roles & 50–950 ramp
primary
#2D307F
secondary
#ADAA5B
accent
#D251D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F