#2D2F8F#2D2F8F
#2D2F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.155 H 274.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2F8F |
|---|---|
| RGB | rgb(45, 47, 143) |
| HSL | hsl(239, 52%, 37%) |
| HSV | hsv(239, 69%, 56%) |
| CMYK | cmyk(68.5%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(25.48, 31.32, -53.33) |
| CIE-LCH | lch(25.48, 61.85, 300.43°) |
| OKLab | oklab(37.05% 0.0133 -0.1539) |
| OKLCH | oklch(37.05% 0.155 274.9) |
| XYZ | xyz(7.0550, 4.5735, 26.4922) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.74
Darkslateblue
#483D8B
ΔE00 5.65
Blueberry
#464196
ΔE00 5.78
Royal
#0C1793
ΔE00 6.14
Midnight Blue
#191970
ΔE00 7.01
Indigo Blue
#3A18B1
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2F8F #8F8D2D
analogous
#2D608F #2D2F8F #5C2D8F
triadic
#2D2F8F #8F2D2F #2F8F2D
tetradic
#2D2F8F #8F2D60 #8F8D2D #2D8F5C
square
#2D2F8F #8F2D60 #8F8D2D #2D8F5C
split-complementary
#2D2F8F #8F5C2D #608F2D
monochromatic
#101032 #1E2060 #2D2F8F #3C3EBE #6769CF
Accessibility & contrast
On white
10.97
#2D2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2D2F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2F8F
10.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2F8F | 1.00 | 10.97 | 1.91 | 10.97 |
| #FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2d2f8f; /* rgb */ color: rgb(45, 47, 143); /* oklch */ color: oklch(37.0% 0.155 274.9);
Tailwind
colors: {
custom: {
50: '#7368b1',
500: '#2d2f8f',
950: '#000000',
},
}SCSS
$custom: #2d2f8f; $custom-light: #7368b1; $custom-dark: #000000;
JSON
{
"hex": "#2d2f8f",
"rgb": {
"r": 45,
"g": 47,
"b": 143
},
"hsl": {
"h": 238.776,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.3705,
"c": 0.15451,
"h": 274.9
},
"luminance": 0.04574
}Semantic roles & 50–950 ramp
primary
#2D2F8F
secondary
#B6B462
accent
#D94CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80