#2D2F8D#2D2F8D
#2D2F8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.152 H 275.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2F8D |
|---|---|
| RGB | rgb(45, 47, 141) |
| HSL | hsl(239, 52%, 36%) |
| HSV | hsv(239, 68%, 55%) |
| CMYK | cmyk(68.1%, 66.7%, 0%, 44.7%) |
| CIE-LAB | lab(25.30, 30.61, -52.39) |
| CIE-LCH | lch(25.30, 60.68, 300.29°) |
| OKLab | oklab(36.86% 0.0135 -0.1512) |
| OKLCH | oklch(36.86% 0.152 275.1) |
| XYZ | xyz(6.9048, 4.5134, 25.7014) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.98
Darkslateblue
#483D8B
ΔE00 5.57
Blueberry
#464196
ΔE00 5.80
Royal
#0C1793
ΔE00 6.24
Midnight Blue
#191970
ΔE00 6.85
Indigo Blue
#3A18B1
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2F8D #8D8B2D
analogous
#2D5F8D #2D2F8D #5B2D8D
triadic
#2D2F8D #8D2D2F #2F8D2D
tetradic
#2D2F8D #8D2D5F #8D8B2D #2D8D5B
square
#2D2F8D #8D2D5F #8D8B2D #2D8D5B
split-complementary
#2D2F8D #8D5B2D #5F8D2D
monochromatic
#0F1030 #1E205F #2D2F8D #3C3EBB #6668CE
Accessibility & contrast
On white
11.04
#2D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2D2F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2F8D
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2F8D | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2d2f8d; /* rgb */ color: rgb(45, 47, 141); /* oklch */ color: oklch(36.9% 0.152 275.1);
Tailwind
colors: {
custom: {
50: '#7368af',
500: '#2d2f8d',
950: '#000000',
},
}SCSS
$custom: #2d2f8d; $custom-light: #7368af; $custom-dark: #000000;
JSON
{
"hex": "#2d2f8d",
"rgb": {
"r": 45,
"g": 47,
"b": 141
},
"hsl": {
"h": 238.75,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.36861,
"c": 0.15178,
"h": 275.1
},
"luminance": 0.04514
}Semantic roles & 50–950 ramp
primary
#2D2F8D
secondary
#B5B361
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F