#2D2F7F#2D2F7F
#2D2F7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.132 H 276.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2F7F |
|---|---|
| RGB | rgb(45, 47, 127) |
| HSL | hsl(239, 48%, 34%) |
| HSV | hsv(239, 65%, 50%) |
| CMYK | cmyk(64.6%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(24.07, 25.56, -45.65) |
| CIE-LCH | lch(24.07, 52.31, 299.25°) |
| OKLab | oklab(35.58% 0.0144 -0.1314) |
| OKLCH | oklch(35.58% 0.132 276.3) |
| XYZ | xyz(5.9282, 4.1227, 20.5579) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.50
Midnight Blue
#191970
ΔE00 6.18
Blueberry
#464196
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 6.93
Royal
#0C1793
ΔE00 7.42
Marine
#042E60
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2F7F #7F7D2D
analogous
#2D587F #2D2F7F #542D7F
triadic
#2D2F7F #7F2D2F #2F7F2D
tetradic
#2D2F7F #7F2D58 #7F7D2D #2D7F54
square
#2D2F7F #7F2D58 #7F7D2D #2D7F54
split-complementary
#2D2F7F #7F542D #587F2D
monochromatic
#0D0E25 #1D1E52 #2D2F7F #3D40AC #6062C7
Accessibility & contrast
On white
11.51
#2D2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2D2F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2F7F
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2F7F | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2d2f7f; /* rgb */ color: rgb(45, 47, 127); /* oklch */ color: oklch(35.6% 0.132 276.3);
Tailwind
colors: {
custom: {
50: '#7067a5',
500: '#2d2f7f',
950: '#000000',
},
}SCSS
$custom: #2d2f7f; $custom-light: #7067a5; $custom-dark: #000000;
JSON
{
"hex": "#2d2f7f",
"rgb": {
"r": 45,
"g": 47,
"b": 127
},
"hsl": {
"h": 238.537,
"s": 47.674,
"l": 33.725
},
"oklch": {
"l": 0.35581,
"c": 0.13216,
"h": 276.3
},
"luminance": 0.04123
}Semantic roles & 50–950 ramp
primary
#2D2F7F
secondary
#ADAB5B
accent
#D451D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F