#2D318F#2D318F
#2D318F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.152 H 274.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2D318F |
|---|---|
| RGB | rgb(45, 49, 143) |
| HSL | hsl(238, 52%, 37%) |
| HSV | hsv(238, 69%, 56%) |
| CMYK | cmyk(68.5%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(25.97, 30.03, -52.54) |
| CIE-LCH | lch(25.97, 60.51, 299.75°) |
| OKLab | oklab(37.41% 0.0117 -0.1516) |
| OKLCH | oklch(37.41% 0.152 274.4) |
| XYZ | xyz(7.1368, 4.7370, 26.5195) |
| Luminance | 0.0474 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.48
Darkslateblue
#483D8B
ΔE00 5.35
Blueberry
#464196
ΔE00 5.37
Royal
#0C1793
ΔE00 6.70
Midnight Blue
#191970
ΔE00 7.43
Indigo Blue
#3A18B1
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D318F #8F8B2D
analogous
#2D628F #2D318F #5A2D8F
triadic
#2D318F #8F2D31 #318F2D
tetradic
#2D318F #8F2D62 #8F8B2D #2D8F5A
square
#2D318F #8F2D62 #8F8B2D #2D8F5A
split-complementary
#2D318F #8F5A2D #628F2D
monochromatic
#101132 #1E2160 #2D318F #3C41BE #676BCF
Accessibility & contrast
On white
10.78
#2D318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2D318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D318F
10.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D318F | 1.00 | 10.78 | 1.95 | 10.78 |
| #FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2d318f; /* rgb */ color: rgb(45, 49, 143); /* oklch */ color: oklch(37.4% 0.152 274.4);
Tailwind
colors: {
custom: {
50: '#7369b1',
500: '#2d318f',
950: '#000000',
},
}SCSS
$custom: #2d318f; $custom-light: #7369b1; $custom-dark: #000000;
JSON
{
"hex": "#2d318f",
"rgb": {
"r": 45,
"g": 49,
"b": 143
},
"hsl": {
"h": 237.551,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.37407,
"c": 0.15203,
"h": 274.4
},
"luminance": 0.04738
}Semantic roles & 50–950 ramp
primary
#2D318F
secondary
#B6B262
accent
#D64CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80