#2C2F97#2C2F97
#2C2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.166 H 273.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2F97 |
|---|---|
| RGB | rgb(44, 47, 151) |
| HSL | hsl(238, 55%, 38%) |
| HSV | hsv(238, 71%, 59%) |
| CMYK | cmyk(70.9%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(26.16, 34.04, -57.15) |
| CIE-LCH | lch(26.16, 66.52, 300.78°) |
| OKLab | oklab(37.76% 0.0112 -0.1651) |
| OKLCH | oklch(37.76% 0.166 273.9) |
| XYZ | xyz(7.6393, 4.8021, 29.7965) |
| Luminance | 0.0480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.84
Blueberry
#464196
ΔE00 5.89
Royal
#0C1793
ΔE00 5.92
Darkslateblue
#483D8B
ΔE00 6.13
Indigo Blue
#3A18B1
ΔE00 6.51
Cobalt Blue
#030AA7
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2F97 #97942C
analogous
#2C6497 #2C2F97 #5E2C97
triadic
#2C2F97 #972C2F #2F972C
tetradic
#2C2F97 #972C64 #97942C #2C975E
square
#2C2F97 #972C64 #97942C #2C975E
split-complementary
#2C2F97 #975E2C #64972C
monochromatic
#101138 #1E2068 #2C2F97 #3A3EC6 #6A6DD4
Accessibility & contrast
On white
10.71
#2C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2C2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2F97
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2F97 | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2c2f97; /* rgb */ color: rgb(44, 47, 151); /* oklch */ color: oklch(37.8% 0.166 273.9);
Tailwind
colors: {
custom: {
50: '#7568b7',
500: '#2c2f97',
950: '#000000',
},
}SCSS
$custom: #2c2f97; $custom-light: #7568b7; $custom-dark: #000000;
JSON
{
"hex": "#2c2f97",
"rgb": {
"r": 44,
"g": 47,
"b": 151
},
"hsl": {
"h": 238.318,
"s": 54.872,
"l": 38.235
},
"oklch": {
"l": 0.37755,
"c": 0.16551,
"h": 273.9
},
"luminance": 0.04803
}Semantic roles & 50–950 ramp
primary
#2C2F97
secondary
#BAB865
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80