#2D338D#2D338D
#2D338D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.147 H 274.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2D338D |
|---|---|
| RGB | rgb(45, 51, 141) |
| HSL | hsl(236, 52%, 36%) |
| HSV | hsv(236, 68%, 55%) |
| CMYK | cmyk(68.1%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(26.30, 27.98, -50.77) |
| CIE-LCH | lch(26.30, 57.97, 298.87°) |
| OKLab | oklab(37.59% 0.0102 -0.1464) |
| OKLCH | oklch(37.59% 0.147 274) |
| XYZ | xyz(7.0721, 4.8480, 25.7572) |
| Luminance | 0.0485 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.57
Blueberry
#464196
ΔE00 5.03
Darkslateblue
#483D8B
ΔE00 5.05
Royal
#0C1793
ΔE00 7.38
Midnight Blue
#191970
ΔE00 7.77
Ocean Blue
#4F42B5
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D338D #8D872D
analogous
#2D638D #2D338D #572D8D
triadic
#2D338D #8D2D33 #338D2D
tetradic
#2D338D #8D2D63 #8D872D #2D8D57
square
#2D338D #8D2D63 #8D872D #2D8D57
split-complementary
#2D338D #8D572D #638D2D
monochromatic
#0F1130 #1E225F #2D338D #3C44BB #666DCE
Accessibility & contrast
On white
10.66
#2D338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2D338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D338D
10.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D338D | 1.00 | 10.66 | 1.97 | 10.66 |
| #FFFFFF | 10.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2d338d; /* rgb */ color: rgb(45, 51, 141); /* oklch */ color: oklch(37.6% 0.147 274.0);
Tailwind
colors: {
custom: {
50: '#736aaf',
500: '#2d338d',
950: '#000000',
},
}SCSS
$custom: #2d338d; $custom-light: #736aaf; $custom-dark: #000000;
JSON
{
"hex": "#2d338d",
"rgb": {
"r": 45,
"g": 51,
"b": 141
},
"hsl": {
"h": 236.25,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.37591,
"c": 0.14673,
"h": 274
},
"luminance": 0.04849
}Semantic roles & 50–950 ramp
primary
#2D338D
secondary
#B5B061
accent
#D24DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F