#2D398C#2D398C
#2D398C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.137 H 272.1°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2D398C |
|---|---|
| RGB | rgb(45, 57, 140) |
| HSL | hsl(232, 51%, 36%) |
| HSV | hsv(232, 68%, 55%) |
| CMYK | cmyk(67.9%, 59.3%, 0%, 45.1%) |
| CIE-LAB | lab(27.78, 23.60, -47.73) |
| CIE-LCH | lch(27.78, 53.24, 296.31°) |
| OKLab | oklab(38.66% 0.005 -0.1374) |
| OKLCH | oklch(38.66% 0.137 272.1) |
| XYZ | xyz(7.2774, 5.3769, 25.4602) |
| Luminance | 0.0538 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.39
Sapphire (survey)
#2138AB
ΔE00 4.70
Darkslateblue
#483D8B
ΔE00 4.84
Cobalt (survey)
#1E488F
ΔE00 6.49
Cobalt
#0047AB
ΔE00 7.03
Darkish Blue
#014182
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D398C #8C802D
analogous
#2D698C #2D398C #512D8C
triadic
#2D398C #8C2D39 #398C2D
tetradic
#2D398C #8C2D69 #8C802D #2D8C51
square
#2D398C #8C2D69 #8C802D #2D8C51
split-complementary
#2D398C #8C512D #698C2D
monochromatic
#0F132F #1E265E #2D398C #3C4CBA #6673CE
Accessibility & contrast
On white
10.12
#2D398C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#2D398C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D398C
10.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D398C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D398C | 1.00 | 10.12 | 2.08 | 10.12 |
| #FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2d398c; /* rgb */ color: rgb(45, 57, 140); /* oklch */ color: oklch(38.7% 0.137 272.1);
Tailwind
colors: {
custom: {
50: '#726fae',
500: '#2d398c',
950: '#000000',
},
}SCSS
$custom: #2d398c; $custom-light: #726fae; $custom-dark: #000000;
JSON
{
"hex": "#2d398c",
"rgb": {
"r": 45,
"g": 57,
"b": 140
},
"hsl": {
"h": 232.421,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.38664,
"c": 0.13748,
"h": 272.1
},
"luminance": 0.05378
}Semantic roles & 50–950 ramp
primary
#2D398C
secondary
#B4AA60
accent
#C94DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F