#2D338C#2D338C
#2D338C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.145 H 274.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2D338C |
|---|---|
| RGB | rgb(45, 51, 140) |
| HSL | hsl(236, 51%, 36%) |
| HSV | hsv(236, 68%, 55%) |
| CMYK | cmyk(67.9%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(26.21, 27.62, -50.29) |
| CIE-LCH | lch(26.21, 57.37, 298.78°) |
| OKLab | oklab(37.5% 0.0103 -0.145) |
| OKLCH | oklch(37.5% 0.145 274) |
| XYZ | xyz(6.9981, 4.8184, 25.3671) |
| Luminance | 0.0482 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.71
Darkslateblue
#483D8B
ΔE00 5.02
Blueberry
#464196
ΔE00 5.06
Royal
#0C1793
ΔE00 7.44
Midnight Blue
#191970
ΔE00 7.71
Ocean Blue
#4F42B5
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D338C #8C862D
analogous
#2D638C #2D338C #572D8C
triadic
#2D338C #8C2D33 #338C2D
tetradic
#2D338C #8C2D63 #8C862D #2D8C57
square
#2D338C #8C2D63 #8C862D #2D8C57
split-complementary
#2D338C #8C572D #638C2D
monochromatic
#0F112F #1E225E #2D338C #3C44BA #666CCE
Accessibility & contrast
On white
10.69
#2D338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2D338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D338C
10.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D338C | 1.00 | 10.69 | 1.96 | 10.69 |
| #FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2d338c; /* rgb */ color: rgb(45, 51, 140); /* oklch */ color: oklch(37.5% 0.145 274.0);
Tailwind
colors: {
custom: {
50: '#726aae',
500: '#2d338c',
950: '#000000',
},
}SCSS
$custom: #2d338c; $custom-light: #726aae; $custom-dark: #000000;
JSON
{
"hex": "#2d338c",
"rgb": {
"r": 45,
"g": 51,
"b": 140
},
"hsl": {
"h": 236.211,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.375,
"c": 0.14533,
"h": 274
},
"luminance": 0.04819
}Semantic roles & 50–950 ramp
primary
#2D338C
secondary
#B4AF60
accent
#D24DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F