#2F299E#2F299E
#2F299E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.180 H 275.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F299E |
|---|---|
| RGB | rgb(47, 41, 158) |
| HSL | hsl(243, 59%, 39%) |
| HSV | hsv(243, 74%, 62%) |
| CMYK | cmyk(70.3%, 74.1%, 0%, 38%) |
| CIE-LAB | lab(25.74, 40.44, -62.13) |
| CIE-LCH | lch(25.74, 74.13, 303.06°) |
| OKLab | oklab(37.71% 0.0177 -0.1796) |
| OKLCH | oklch(37.71% 0.18 275.6) |
| XYZ | xyz(8.1348, 4.6581, 32.8115) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.38
Royal
#0C1793
ΔE00 4.79
Sapphire (survey)
#2138AB
ΔE00 4.80
Cobalt Blue
#030AA7
ΔE00 5.82
Ultramarine
#2000B1
ΔE00 6.28
Royal Blue (survey)
#0504AA
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F299E #989E29
analogous
#295E9E #2F299E #6A299E
triadic
#2F299E #9E2F29 #299E2F
tetradic
#2F299E #9E295E #989E29 #299E6A
square
#2F299E #9E295E #989E29 #299E6A
split-complementary
#2F299E #9E6A29 #5E9E29
monochromatic
#12103D #211C6D #2F299E #4039CC #6F69D8
Accessibility & contrast
On white
10.87
#2F299E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F299E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F299E
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F299E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F299E | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f299e; /* rgb */ color: rgb(47, 41, 158); /* oklch */ color: oklch(37.7% 0.180 275.6);
Tailwind
colors: {
custom: {
50: '#7864bc',
500: '#2f299e',
950: '#000000',
},
}SCSS
$custom: #2f299e; $custom-light: #7864bc; $custom-dark: #000000;
JSON
{
"hex": "#2f299e",
"rgb": {
"r": 47,
"g": 41,
"b": 158
},
"hsl": {
"h": 243.077,
"s": 58.794,
"l": 39.02
},
"oklch": {
"l": 0.37713,
"c": 0.18044,
"h": 275.6
},
"luminance": 0.04659
}Semantic roles & 50–950 ramp
primary
#2F299E
secondary
#BABF64
accent
#E246DA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81