#2F236A#2F236A
#2F236A is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.118 H 285.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F236A |
|---|---|
| RGB | rgb(47, 35, 106) |
| HSL | hsl(250, 50%, 28%) |
| HSV | hsv(250, 67%, 42%) |
| CMYK | cmyk(55.7%, 67%, 0%, 58.4%) |
| CIE-LAB | lab(19.42, 26.51, -39.76) |
| CIE-LCH | lch(19.42, 47.79, 303.69°) |
| OKLab | oklab(31.66% 0.0309 -0.1141) |
| OKLCH | oklch(31.66% 0.118 285.2) |
| XYZ | xyz(4.3741, 2.8468, 13.9519) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.27
Dark Indigo
#1F0954
ΔE00 6.71
Darkblue (survey)
#030764
ΔE00 7.65
Dark Royal Blue
#02066F
ΔE00 7.90
Indigo (survey)
#380282
ΔE00 8.00
Royal
#0C1793
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F236A #5E6A23
analogous
#233A6A #2F236A #53236A
triadic
#2F236A #6A2F23 #236A2F
tetradic
#2F236A #6A233A #5E6A23 #236A53
square
#2F236A #6A233A #5E6A23 #236A53
split-complementary
#2F236A #6A5323 #3A6A23
monochromatic
#0A0817 #1B143C #2F236A #433298 #5B46C2
Accessibility & contrast
On white
13.38
#2F236A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F236A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F236A
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F236A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F236A | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#173443
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f236a; /* rgb */ color: rgb(47, 35, 106); /* oklch */ color: oklch(31.7% 0.118 285.2);
Tailwind
colors: {
custom: {
50: '#6e5e95',
500: '#2f236a',
950: '#000000',
},
}SCSS
$custom: #2f236a; $custom-light: #6e5e95; $custom-dark: #000000;
JSON
{
"hex": "#2f236a",
"rgb": {
"r": 47,
"g": 35,
"b": 106
},
"hsl": {
"h": 250.141,
"s": 50.355,
"l": 27.647
},
"oklch": {
"l": 0.31655,
"c": 0.1182,
"h": 285.2
},
"luminance": 0.02847
}Semantic roles & 50–950 ramp
primary
#2F236A
secondary
#909D4B
accent
#DA4EC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E