#2D308D#2D308D
#2D308D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.151 H 274.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2D308D |
|---|---|
| RGB | rgb(45, 48, 141) |
| HSL | hsl(238, 52%, 36%) |
| HSV | hsv(238, 68%, 55%) |
| CMYK | cmyk(68.1%, 66%, 0%, 44.7%) |
| CIE-LAB | lab(25.55, 29.96, -51.99) |
| CIE-LCH | lch(25.55, 60.01, 299.95°) |
| OKLab | oklab(37.04% 0.0127 -0.15) |
| OKLCH | oklch(37.04% 0.151 274.8) |
| XYZ | xyz(6.9453, 4.5943, 25.7149) |
| Luminance | 0.0459 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.85
Darkslateblue
#483D8B
ΔE00 5.42
Blueberry
#464196
ΔE00 5.60
Royal
#0C1793
ΔE00 6.52
Midnight Blue
#191970
ΔE00 7.06
Indigo Blue
#3A18B1
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D308D #8D8A2D
analogous
#2D608D #2D308D #5A2D8D
triadic
#2D308D #8D2D30 #308D2D
tetradic
#2D308D #8D2D60 #8D8A2D #2D8D5A
square
#2D308D #8D2D60 #8D8A2D #2D8D5A
split-complementary
#2D308D #8D5A2D #608D2D
monochromatic
#0F1030 #1E205F #2D308D #3C40BB #6669CE
Accessibility & contrast
On white
10.94
#2D308D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#2D308D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D308D
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D308D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D308D | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2d308d; /* rgb */ color: rgb(45, 48, 141); /* oklch */ color: oklch(37.0% 0.151 274.8);
Tailwind
colors: {
custom: {
50: '#7368af',
500: '#2d308d',
950: '#000000',
},
}SCSS
$custom: #2d308d; $custom-light: #7368af; $custom-dark: #000000;
JSON
{
"hex": "#2d308d",
"rgb": {
"r": 45,
"g": 48,
"b": 141
},
"hsl": {
"h": 238.125,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.3704,
"c": 0.15053,
"h": 274.8
},
"luminance": 0.04595
}Semantic roles & 50–950 ramp
primary
#2D308D
secondary
#B5B261
accent
#D74DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F