#2F229C#2F229C
#2F229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.185 H 276.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2F229C |
|---|---|
| RGB | rgb(47, 34, 156) |
| HSL | hsl(246, 64%, 37%) |
| HSV | hsv(246, 78%, 61%) |
| CMYK | cmyk(69.9%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(24.15, 43.67, -63.52) |
| CIE-LCH | lch(24.15, 77.08, 304.51°) |
| OKLab | oklab(36.53% 0.022 -0.1836) |
| OKLCH | oklch(36.53% 0.185 276.8) |
| XYZ | xyz(7.7431, 4.1480, 31.8386) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.57
Royal
#0C1793
ΔE00 3.62
Cobalt Blue
#030AA7
ΔE00 4.49
Royal Blue (survey)
#0504AA
ΔE00 4.94
Ultramarine
#2000B1
ΔE00 4.98
True Blue
#010FCC
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F229C #8F9C22
analogous
#22529C #2F229C #6C229C
triadic
#2F229C #9C2F22 #229C2F
tetradic
#2F229C #9C2252 #8F9C22 #229C6C
square
#2F229C #9C2252 #8F9C22 #229C6C
split-complementary
#2F229C #9C6C22 #529C22
monochromatic
#110C38 #20176A #2F229C #3E2DCE #6A5DDC
Accessibility & contrast
On white
11.48
#2F229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F229C
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F229C | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f229c; /* rgb */ color: rgb(47, 34, 156); /* oklch */ color: oklch(36.5% 0.185 276.8);
Tailwind
colors: {
custom: {
50: '#7860ba',
500: '#2f229c',
950: '#000000',
},
}SCSS
$custom: #2f229c; $custom-light: #7860ba; $custom-dark: #000000;
JSON
{
"hex": "#2f229c",
"rgb": {
"r": 47,
"g": 34,
"b": 156
},
"hsl": {
"h": 246.393,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.36532,
"c": 0.18487,
"h": 276.8
},
"luminance": 0.04149
}Semantic roles & 50–950 ramp
primary
#2F229C
secondary
#B5C05A
accent
#E741D5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981