#2D308C#2D308C
#2D308C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.149 H 274.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2D308C |
|---|---|
| RGB | rgb(45, 48, 140) |
| HSL | hsl(238, 51%, 36%) |
| HSV | hsv(238, 68%, 55%) |
| CMYK | cmyk(67.9%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(25.46, 29.60, -51.52) |
| CIE-LCH | lch(25.46, 59.42, 299.88°) |
| OKLab | oklab(36.95% 0.0127 -0.1486) |
| OKLCH | oklch(36.95% 0.149 274.9) |
| XYZ | xyz(6.8712, 4.5646, 25.3248) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.98
Darkslateblue
#483D8B
ΔE00 5.39
Blueberry
#464196
ΔE00 5.61
Royal
#0C1793
ΔE00 6.57
Midnight Blue
#191970
ΔE00 6.99
Indigo Blue
#3A18B1
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D308C #8C892D
analogous
#2D608C #2D308C #5A2D8C
triadic
#2D308C #8C2D30 #308C2D
tetradic
#2D308C #8C2D60 #8C892D #2D8C5A
square
#2D308C #8C2D60 #8C892D #2D8C5A
split-complementary
#2D308C #8C5A2D #608C2D
monochromatic
#0F102F #1E205E #2D308C #3C40BA #6669CE
Accessibility & contrast
On white
10.98
#2D308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2D308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D308C
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D308C | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2d308c; /* rgb */ color: rgb(45, 48, 140); /* oklch */ color: oklch(36.9% 0.149 274.9);
Tailwind
colors: {
custom: {
50: '#7368ae',
500: '#2d308c',
950: '#000000',
},
}SCSS
$custom: #2d308c; $custom-light: #7368ae; $custom-dark: #000000;
JSON
{
"hex": "#2d308c",
"rgb": {
"r": 45,
"g": 48,
"b": 140
},
"hsl": {
"h": 238.105,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.36947,
"c": 0.14916,
"h": 274.9
},
"luminance": 0.04565
}Semantic roles & 50–950 ramp
primary
#2D308C
secondary
#B4B260
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F