#2F2EA7#2F2EA7
#2F2EA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.187 H 274.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2EA7 |
|---|---|
| RGB | rgb(47, 46, 167) |
| HSL | hsl(240, 57%, 42%) |
| HSV | hsv(240, 72%, 65%) |
| CMYK | cmyk(71.9%, 72.5%, 0%, 34.5%) |
| CIE-LAB | lab(27.70, 40.55, -64.35) |
| CIE-LCH | lch(27.70, 76.06, 302.22°) |
| OKLab | oklab(39.39% 0.0132 -0.1861) |
| OKLCH | oklch(39.39% 0.187 274.1) |
| XYZ | xyz(9.1220, 5.3475, 37.1031) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.38
Indigo Blue
#3A18B1
ΔE00 4.79
Royal
#0C1793
ΔE00 6.23
True Blue
#010FCC
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.53
Blueberry
#464196
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2EA7 #A6A72E
analogous
#2E6AA7 #2F2EA7 #6C2EA7
triadic
#2F2EA7 #A72F2E #2EA72F
tetradic
#2F2EA7 #A72E6A #A6A72E #2EA76C
square
#2F2EA7 #A72E6A #A6A72E #2EA76C
split-complementary
#2F2EA7 #A76C2E #6AA72E
monochromatic
#141447 #212177 #2F2EA7 #4746CC #7776D9
Accessibility & contrast
On white
10.15
#2F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#2F2EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2EA7
10.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2EA7 | 1.00 | 10.15 | 2.07 | 10.15 |
| #FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f2ea7; /* rgb */ color: rgb(47, 46, 167); /* oklch */ color: oklch(39.4% 0.187 274.1);
Tailwind
colors: {
custom: {
50: '#7a68c2',
500: '#2f2ea7',
950: '#000000',
},
}SCSS
$custom: #2f2ea7; $custom-light: #7a68c2; $custom-dark: #000000;
JSON
{
"hex": "#2f2ea7",
"rgb": {
"r": 47,
"g": 46,
"b": 167
},
"hsl": {
"h": 240.496,
"s": 56.808,
"l": 41.765
},
"oklch": {
"l": 0.39388,
"c": 0.18654,
"h": 274.1
},
"luminance": 0.05348
}Semantic roles & 50–950 ramp
primary
#2F2EA7
secondary
#C1C170
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82