#2F227F#2F227F
#2F227F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.148 H 281.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F227F |
|---|---|
| RGB | rgb(47, 34, 127) |
| HSL | hsl(248, 58%, 32%) |
| HSV | hsv(248, 73%, 50%) |
| CMYK | cmyk(63%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(21.13, 34.20, -50.45) |
| CIE-LCH | lch(21.13, 60.95, 304.14°) |
| OKLab | oklab(33.49% 0.0287 -0.1454) |
| OKLCH | oklch(33.49% 0.148 281.1) |
| XYZ | xyz(5.5739, 3.2803, 20.4140) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.75
Royal
#0C1793
ΔE00 4.77
Indigo (survey)
#380282
ΔE00 5.79
Dark Royal Blue
#02066F
ΔE00 6.93
Darkblue
#00008B
ΔE00 6.99
Navy
#000080
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F227F #727F22
analogous
#22447F #2F227F #5E227F
triadic
#2F227F #7F2F22 #227F2F
tetradic
#2F227F #7F2244 #727F22 #227F5E
square
#2F227F #7F2244 #727F22 #227F5E
split-complementary
#2F227F #7F5E22 #447F22
monochromatic
#0B081E #1D154F #2F227F #412FAF #5F4CCF
Accessibility & contrast
On white
12.68
#2F227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F227F
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F227F | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f227f; /* rgb */ color: rgb(47, 34, 127); /* oklch */ color: oklch(33.5% 0.148 281.1);
Tailwind
colors: {
custom: {
50: '#725fa5',
500: '#2f227f',
950: '#000000',
},
}SCSS
$custom: #2f227f; $custom-light: #725fa5; $custom-dark: #000000;
JSON
{
"hex": "#2f227f",
"rgb": {
"r": 47,
"g": 34,
"b": 127
},
"hsl": {
"h": 248.387,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.33489,
"c": 0.14822,
"h": 281.1
},
"luminance": 0.03281
}Semantic roles & 50–950 ramp
primary
#2F227F
secondary
#A3B24B
accent
#E147CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F