#2F226C#2F226C
#2F226C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.122 H 285.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F226C |
|---|---|
| RGB | rgb(47, 34, 108) |
| HSL | hsl(251, 52%, 28%) |
| HSV | hsv(251, 69%, 42%) |
| CMYK | cmyk(56.5%, 68.5%, 0%, 57.6%) |
| CIE-LAB | lab(19.35, 27.83, -41.17) |
| CIE-LCH | lch(19.35, 49.69, 304.06°) |
| OKLab | oklab(31.66% 0.0318 -0.1182) |
| OKLCH | oklch(31.66% 0.122 285.1) |
| XYZ | xyz(4.4503, 2.8309, 14.4964) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.88
Dark Indigo
#1F0954
ΔE00 6.57
Darkblue (survey)
#030764
ΔE00 7.32
Indigo (survey)
#380282
ΔE00 7.46
Dark Royal Blue
#02066F
ΔE00 7.48
Royal
#0C1793
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F226C #5F6C22
analogous
#223A6C #2F226C #54226C
triadic
#2F226C #6C2F22 #226C2F
tetradic
#2F226C #6C223A #5F6C22 #226C54
square
#2F226C #6C223A #5F6C22 #226C54
split-complementary
#2F226C #6C5422 #3A6C22
monochromatic
#0A0717 #1B133D #2F226C #43319B #5B44C4
Accessibility & contrast
On white
13.41
#2F226C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F226C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F226C
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F226C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F226C | 1.00 | 13.41 | 1.57 | 13.41 |
| #FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#153443
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f226c; /* rgb */ color: rgb(47, 34, 108); /* oklch */ color: oklch(31.7% 0.122 285.1);
Tailwind
colors: {
custom: {
50: '#6e5e97',
500: '#2f226c',
950: '#000000',
},
}SCSS
$custom: #2f226c; $custom-light: #6e5e97; $custom-dark: #000000;
JSON
{
"hex": "#2f226c",
"rgb": {
"r": 47,
"g": 34,
"b": 108
},
"hsl": {
"h": 250.541,
"s": 52.113,
"l": 27.843
},
"oklch": {
"l": 0.31662,
"c": 0.12242,
"h": 285.1
},
"luminance": 0.02831
}Semantic roles & 50–950 ramp
primary
#2F226C
secondary
#91A04A
accent
#DC4CC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E