#2D2F9F#2D2F9F
#2D2F9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.176 H 273.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2F9F |
|---|---|
| RGB | rgb(45, 47, 159) |
| HSL | hsl(239, 56%, 40%) |
| HSV | hsv(239, 72%, 62%) |
| CMYK | cmyk(71.7%, 70.4%, 0%, 37.6%) |
| CIE-LAB | lab(27.00, 36.97, -60.66) |
| CIE-LCH | lch(27.00, 71.04, 301.36°) |
| OKLab | oklab(38.61% 0.0114 -0.1754) |
| OKLCH | oklch(38.61% 0.176 273.7) |
| XYZ | xyz(8.3546, 5.0933, 33.3370) |
| Luminance | 0.0509 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.29
Indigo Blue
#3A18B1
ΔE00 5.69
Royal
#0C1793
ΔE00 6.03
Blueberry
#464196
ΔE00 6.08
Darkslateblue
#483D8B
ΔE00 6.59
Ocean Blue
#4F42B5
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2F9F #9F9D2D
analogous
#2D689F #2D2F9F #642D9F
triadic
#2D2F9F #9F2D2F #2F9F2D
tetradic
#2D2F9F #9F2D68 #9F9D2D #2D9F64
square
#2D2F9F #9F2D68 #9F9D2D #2D9F64
split-complementary
#2D2F9F #9F642D #689F2D
monochromatic
#121340 #20216F #2D2F9F #4043C9 #7072D6
Accessibility & contrast
On white
10.40
#2D2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#2D2F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2F9F
10.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2F9F | 1.00 | 10.40 | 2.02 | 10.40 |
| #FFFFFF | 10.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2d2f9f; /* rgb */ color: rgb(45, 47, 159); /* oklch */ color: oklch(38.6% 0.176 273.7);
Tailwind
colors: {
custom: {
50: '#7768bc',
500: '#2d2f9f',
950: '#000000',
},
}SCSS
$custom: #2d2f9f; $custom-light: #7768bc; $custom-dark: #000000;
JSON
{
"hex": "#2d2f9f",
"rgb": {
"r": 45,
"g": 47,
"b": 159
},
"hsl": {
"h": 238.947,
"s": 55.882,
"l": 40
},
"oklch": {
"l": 0.3861,
"c": 0.17574,
"h": 273.7
},
"luminance": 0.05094
}Semantic roles & 50–950 ramp
primary
#2D2F9F
secondary
#BEBC6A
accent
#DD49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81