#2F229D#2F229D
#2F229D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.186 H 276.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F229D |
|---|---|
| RGB | rgb(47, 34, 157) |
| HSL | hsl(246, 64%, 37%) |
| HSV | hsv(246, 78%, 62%) |
| CMYK | cmyk(70.1%, 78.3%, 0%, 38.4%) |
| CIE-LAB | lab(24.26, 43.99, -63.95) |
| CIE-LCH | lch(24.26, 77.62, 304.52°) |
| OKLab | oklab(36.64% 0.0217 -0.1848) |
| OKLCH | oklch(36.64% 0.186 276.7) |
| XYZ | xyz(7.8281, 4.1820, 32.2864) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.45
Royal
#0C1793
ΔE00 3.67
Cobalt Blue
#030AA7
ΔE00 4.46
Royal Blue (survey)
#0504AA
ΔE00 4.90
Ultramarine
#2000B1
ΔE00 4.91
True Blue
#010FCC
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F229D #909D22
analogous
#22539D #2F229D #6C229D
triadic
#2F229D #9D2F22 #229D2F
tetradic
#2F229D #9D2253 #909D22 #229D6C
square
#2F229D #9D2253 #909D22 #229D6C
split-complementary
#2F229D #9D6C22 #539D22
monochromatic
#110C38 #20176B #2F229D #3E2DCF #6B5DDC
Accessibility & contrast
On white
11.43
#2F229D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2F229D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F229D
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F229D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F229D | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f229d; /* rgb */ color: rgb(47, 34, 157); /* oklch */ color: oklch(36.6% 0.186 276.7);
Tailwind
colors: {
custom: {
50: '#7960bb',
500: '#2f229d',
950: '#000000',
},
}SCSS
$custom: #2f229d; $custom-light: #7960bb; $custom-dark: #000000;
JSON
{
"hex": "#2f229d",
"rgb": {
"r": 47,
"g": 34,
"b": 157
},
"hsl": {
"h": 246.341,
"s": 64.398,
"l": 37.451
},
"oklch": {
"l": 0.36641,
"c": 0.18609,
"h": 276.7
},
"luminance": 0.04183
}Semantic roles & 50–950 ramp
primary
#2F229D
secondary
#B6C15A
accent
#E740D6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981