#2F218F#2F218F
#2F218F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.170 H 278.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2F218F |
|---|---|
| RGB | rgb(47, 33, 143) |
| HSL | hsl(248, 63%, 35%) |
| HSV | hsv(248, 77%, 56%) |
| CMYK | cmyk(67.1%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.57, 40.03, -58.12) |
| CIE-LCH | lch(22.57, 70.58, 304.56°) |
| OKLab | oklab(35% 0.0258 -0.1678) |
| OKLCH | oklch(35% 0.17 278.7) |
| XYZ | xyz(6.6725, 3.6747, 26.3389) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.31
Indigo Blue
#3A18B1
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.46
Indigo (survey)
#380282
ΔE00 5.53
Royal Blue (survey)
#0504AA
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F218F #818F21
analogous
#214A8F #2F218F #66218F
triadic
#2F218F #8F2F21 #218F2F
tetradic
#2F218F #8F214A #818F21 #218F66
square
#2F218F #8F214A #818F21 #218F66
split-complementary
#2F218F #8F6621 #4A8F21
monochromatic
#0E0A2C #1F165D #2F218F #3F2CC1 #6453D7
Accessibility & contrast
On white
12.10
#2F218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2F218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F218F
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F218F | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 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: #2f218f; /* rgb */ color: rgb(47, 33, 143); /* oklch */ color: oklch(35.0% 0.170 278.7);
Tailwind
colors: {
custom: {
50: '#765fb1',
500: '#2f218f',
950: '#000000',
},
}SCSS
$custom: #2f218f; $custom-light: #765fb1; $custom-dark: #000000;
JSON
{
"hex": "#2f218f",
"rgb": {
"r": 47,
"g": 33,
"b": 143
},
"hsl": {
"h": 247.636,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.34998,
"c": 0.16982,
"h": 278.7
},
"luminance": 0.03675
}Semantic roles & 50–950 ramp
primary
#2F218F
secondary
#ADBB51
accent
#E642D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980