#2F2180#2F2180
#2F2180 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.151 H 281.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2180 |
|---|---|
| RGB | rgb(47, 33, 128) |
| HSL | hsl(249, 59%, 32%) |
| HSV | hsv(249, 74%, 50%) |
| CMYK | cmyk(63.3%, 74.2%, 0%, 49.8%) |
| CIE-LAB | lab(21.02, 35.12, -51.27) |
| CIE-LCH | lch(21.02, 62.14, 304.42°) |
| OKLab | oklab(33.44% 0.0292 -0.1478) |
| OKLCH | oklch(33.44% 0.151 281.2) |
| XYZ | xyz(5.6112, 3.2502, 20.7495) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.76
Royal
#0C1793
ΔE00 4.53
Indigo (survey)
#380282
ΔE00 5.50
Darkblue
#00008B
ΔE00 6.71
Dark Royal Blue
#02066F
ΔE00 6.76
Navy
#000080
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2180 #728021
analogous
#214380 #2F2180 #5F2180
triadic
#2F2180 #802F21 #21802F
tetradic
#2F2180 #802143 #728021 #21805F
square
#2F2180 #802143 #728021 #21805F
split-complementary
#2F2180 #805F21 #438021
monochromatic
#0B081F #1D144F #2F2180 #412EB1 #5F4BD1
Accessibility & contrast
On white
12.73
#2F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2F2180 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2180
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2180 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2180 | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f2180; /* rgb */ color: rgb(47, 33, 128); /* oklch */ color: oklch(33.4% 0.151 281.2);
Tailwind
colors: {
custom: {
50: '#725ea6',
500: '#2f2180',
950: '#000000',
},
}SCSS
$custom: #2f2180; $custom-light: #725ea6; $custom-dark: #000000;
JSON
{
"hex": "#2f2180",
"rgb": {
"r": 47,
"g": 33,
"b": 128
},
"hsl": {
"h": 248.842,
"s": 59.006,
"l": 31.569
},
"oklch": {
"l": 0.33438,
"c": 0.15068,
"h": 281.2
},
"luminance": 0.03251
}Semantic roles & 50–950 ramp
primary
#2F2180
secondary
#A3B34A
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F