#2C2FA7#2C2FA7
#2C2FA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.186 H 272.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2FA7 |
|---|---|
| RGB | rgb(44, 47, 167) |
| HSL | hsl(239, 58%, 41%) |
| HSV | hsv(239, 74%, 65%) |
| CMYK | cmyk(73.7%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(27.73, 39.64, -64.31) |
| CIE-LCH | lch(27.73, 75.54, 301.65°) |
| OKLab | oklab(39.36% 0.0091 -0.186) |
| OKLCH | oklch(39.36% 0.186 272.8) |
| XYZ | xyz(9.0279, 5.3576, 37.1101) |
| Luminance | 0.0536 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Indigo Blue
#3A18B1
ΔE00 5.18
Royal
#0C1793
ΔE00 6.36
Blueberry
#464196
ΔE00 6.50
Ocean Blue
#4F42B5
ΔE00 6.55
Blue Blue
#2242C7
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2FA7 #A7A42C
analogous
#2C6DA7 #2C2FA7 #672CA7
triadic
#2C2FA7 #A72C2F #2FA72C
tetradic
#2C2FA7 #A72C6D #A7A42C #2CA767
square
#2C2FA7 #A72C6D #A7A42C #2CA767
split-complementary
#2C2FA7 #A7672C #6DA72C
monochromatic
#121446 #1F2177 #2C2FA7 #4346CD #7376DA
Accessibility & contrast
On white
10.14
#2C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#2C2FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2FA7
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2FA7 | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2c2fa7; /* rgb */ color: rgb(44, 47, 167); /* oklch */ color: oklch(39.4% 0.186 272.8);
Tailwind
colors: {
custom: {
50: '#7968c2',
500: '#2c2fa7',
950: '#000000',
},
}SCSS
$custom: #2c2fa7; $custom-light: #7968c2; $custom-dark: #000000;
JSON
{
"hex": "#2c2fa7",
"rgb": {
"r": 44,
"g": 47,
"b": 167
},
"hsl": {
"h": 238.537,
"s": 58.294,
"l": 41.373
},
"oklch": {
"l": 0.39358,
"c": 0.18625,
"h": 272.8
},
"luminance": 0.05359
}Semantic roles & 50–950 ramp
primary
#2C2FA7
secondary
#C2C06D
accent
#DE46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82