#2F21B3#2F21B3
#2F21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.0% C 0.213 H 274.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F21B3 |
|---|---|
| RGB | rgb(47, 33, 179) |
| HSL | hsl(246, 69%, 42%) |
| HSV | hsv(246, 82%, 70%) |
| CMYK | cmyk(73.7%, 81.6%, 0%, 29.8%) |
| CIE-LAB | lab(26.58, 51.33, -73.41) |
| CIE-LCH | lch(26.58, 89.57, 304.96°) |
| OKLab | oklab(38.98% 0.0164 -0.2123) |
| OKLCH | oklch(38.98% 0.213 274.4) |
| XYZ | xyz(9.8501, 4.9457, 43.0746) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.86
True Blue
#010FCC
ΔE00 3.64
Ultramarine
#2000B1
ΔE00 4.23
Mediumblue
#0000CD
ΔE00 4.35
Cobalt Blue
#030AA7
ΔE00 4.72
Royal Blue (survey)
#0504AA
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F21B3 #A5B321
analogous
#215CB3 #2F21B3 #7821B3
triadic
#2F21B3 #B32F21 #21B32F
tetradic
#2F21B3 #B3215C #A5B321 #21B378
square
#2F21B3 #B3215C #A5B321 #21B378
split-complementary
#2F21B3 #B37821 #5CB321
monochromatic
#140E4C #21177F #2F21B3 #4737DA #766BE4
Accessibility & contrast
On white
10.56
#2F21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2F21B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F21B3
10.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F21B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F21B3 | 1.00 | 10.56 | 1.99 | 10.56 |
| #FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f21b3; /* rgb */ color: rgb(47, 33, 179); /* oklch */ color: oklch(39.0% 0.213 274.4);
Tailwind
colors: {
custom: {
50: '#7e61cb',
500: '#2f21b3',
950: '#000000',
},
}SCSS
$custom: #2f21b3; $custom-light: #7e61cb; $custom-dark: #000000;
JSON
{
"hex": "#2f21b3",
"rgb": {
"r": 47,
"g": 33,
"b": 179
},
"hsl": {
"h": 245.753,
"s": 68.868,
"l": 41.569
},
"oklch": {
"l": 0.38982,
"c": 0.21291,
"h": 274.4
},
"luminance": 0.04947
}Semantic roles & 50–950 ramp
primary
#2F21B3
secondary
#C0CA66
accent
#EC3CDB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982