#2F22C1#2F22C1
#2F22C1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.7% C 0.228 H 273.1°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2F22C1 |
|---|---|
| RGB | rgb(47, 34, 193) |
| HSL | hsl(245, 70%, 45%) |
| HSV | hsv(245, 82%, 76%) |
| CMYK | cmyk(75.6%, 82.4%, 0%, 24.3%) |
| CIE-LAB | lab(28.37, 55.08, -78.74) |
| CIE-LCH | lch(28.37, 96.09, 304.97°) |
| OKLab | oklab(40.7% 0.0125 -0.2277) |
| OKLCH | oklch(40.7% 0.228 273.1) |
| XYZ | xyz(11.3667, 5.5974, 50.9231) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.86
True Blue
#010FCC
ΔE00 3.01
Ultramarine Blue
#1805DB
ΔE00 3.68
Mediumblue
#0000CD
ΔE00 3.94
Pure Blue
#0203E2
ΔE00 4.20
Violet Blue
#510AC9
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F22C1 #B4C122
analogous
#2264C1 #2F22C1 #7F22C1
triadic
#2F22C1 #C12F22 #22C12F
tetradic
#2F22C1 #C12264 #B4C122 #22C17F
square
#2F22C1 #C12264 #B4C122 #22C17F
split-complementary
#2F22C1 #C17F22 #64C122
monochromatic
#161059 #22198D #2F22C1 #4F42DE #8076E7
Accessibility & contrast
On white
9.91
#2F22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#2F22C1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F22C1
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F22C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F22C1 | 1.00 | 9.91 | 2.12 | 9.91 |
| #FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AC5
Deuteranopia (green-blind)
#003BBE
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2f22c1; /* rgb */ color: rgb(47, 34, 193); /* oklch */ color: oklch(40.7% 0.228 273.1);
Tailwind
colors: {
custom: {
50: '#8162d5',
500: '#2f22c1',
950: '#000000',
},
}SCSS
$custom: #2f22c1; $custom-light: #8162d5; $custom-dark: #000000;
JSON
{
"hex": "#2f22c1",
"rgb": {
"r": 47,
"g": 34,
"b": 193
},
"hsl": {
"h": 244.906,
"s": 70.044,
"l": 44.51
},
"oklch": {
"l": 0.40696,
"c": 0.22809,
"h": 273.1
},
"luminance": 0.05599
}Semantic roles & 50–950 ramp
primary
#2F22C1
secondary
#C7CE71
accent
#ED3BDE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83