#2D308F#2D308F
#2D308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.153 H 274.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2D308F |
|---|---|
| RGB | rgb(45, 48, 143) |
| HSL | hsl(238, 52%, 37%) |
| HSV | hsv(238, 69%, 56%) |
| CMYK | cmyk(68.5%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(25.73, 30.68, -52.94) |
| CIE-LCH | lch(25.73, 61.18, 300.09°) |
| OKLab | oklab(37.23% 0.0125 -0.1528) |
| OKLCH | oklch(37.23% 0.153 274.7) |
| XYZ | xyz(7.0954, 4.6543, 26.5057) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.60
Darkslateblue
#483D8B
ΔE00 5.50
Blueberry
#464196
ΔE00 5.57
Royal
#0C1793
ΔE00 6.42
Midnight Blue
#191970
ΔE00 7.21
Indigo Blue
#3A18B1
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D308F #8F8C2D
analogous
#2D618F #2D308F #5B2D8F
triadic
#2D308F #8F2D30 #308F2D
tetradic
#2D308F #8F2D61 #8F8C2D #2D8F5B
square
#2D308F #8F2D61 #8F8C2D #2D8F5B
split-complementary
#2D308F #8F5B2D #618F2D
monochromatic
#101132 #1E2060 #2D308F #3C40BE #676ACF
Accessibility & contrast
On white
10.88
#2D308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2D308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D308F
10.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D308F | 1.00 | 10.88 | 1.93 | 10.88 |
| #FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2d308f; /* rgb */ color: rgb(45, 48, 143); /* oklch */ color: oklch(37.2% 0.153 274.7);
Tailwind
colors: {
custom: {
50: '#7368b1',
500: '#2d308f',
950: '#000000',
},
}SCSS
$custom: #2d308f; $custom-light: #7368b1; $custom-dark: #000000;
JSON
{
"hex": "#2d308f",
"rgb": {
"r": 45,
"g": 48,
"b": 143
},
"hsl": {
"h": 238.163,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.37227,
"c": 0.15327,
"h": 274.7
},
"luminance": 0.04655
}Semantic roles & 50–950 ramp
primary
#2D308F
secondary
#B6B362
accent
#D74CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80