#2D218F#2D218F
#2D218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 277.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2D218F |
|---|---|
| RGB | rgb(45, 33, 143) |
| HSL | hsl(247, 63%, 35%) |
| HSV | hsv(247, 77%, 56%) |
| CMYK | cmyk(68.5%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.40, 39.80, -58.40) |
| CIE-LCH | lch(22.40, 70.67, 304.28°) |
| OKLab | oklab(34.84% 0.0229 -0.1687) |
| OKLCH | oklch(34.84% 0.17 277.7) |
| XYZ | xyz(6.5824, 3.6282, 26.3347) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.14
Cobalt Blue
#030AA7
ΔE00 5.16
Indigo Blue
#3A18B1
ΔE00 5.25
Midnight Blue
#191970
ΔE00 5.36
Indigo (survey)
#380282
ΔE00 5.64
Royal Blue (survey)
#0504AA
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D218F #838F21
analogous
#214C8F #2D218F #64218F
triadic
#2D218F #8F2D21 #218F2D
tetradic
#2D218F #8F214C #838F21 #218F64
square
#2D218F #8F214C #838F21 #218F64
split-complementary
#2D218F #8F6421 #4C8F21
monochromatic
#0E0A2C #1D165D #2D218F #3D2CC1 #6253D7
Accessibility & contrast
On white
12.17
#2D218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2D218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D218F
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D218F | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2d218f; /* rgb */ color: rgb(45, 33, 143); /* oklch */ color: oklch(34.8% 0.170 277.7);
Tailwind
colors: {
custom: {
50: '#755fb1',
500: '#2d218f',
950: '#000000',
},
}SCSS
$custom: #2d218f; $custom-light: #755fb1; $custom-dark: #000000;
JSON
{
"hex": "#2d218f",
"rgb": {
"r": 45,
"g": 33,
"b": 143
},
"hsl": {
"h": 246.545,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.34842,
"c": 0.17025,
"h": 277.7
},
"luminance": 0.03629
}Semantic roles & 50–950 ramp
primary
#2D218F
secondary
#AFBB51
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980