#2F2AA1#2F2AA1
#2F2AA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.183 H 275.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2AA1 |
|---|---|
| RGB | rgb(47, 42, 161) |
| HSL | hsl(243, 59%, 40%) |
| HSV | hsv(243, 74%, 63%) |
| CMYK | cmyk(70.8%, 73.9%, 0%, 36.9%) |
| CIE-LAB | lab(26.25, 40.87, -63.10) |
| CIE-LCH | lch(26.25, 75.18, 302.93°) |
| OKLab | oklab(38.17% 0.0165 -0.1824) |
| OKLCH | oklch(38.17% 0.183 275.2) |
| XYZ | xyz(8.4312, 4.8327, 34.1998) |
| Luminance | 0.0483 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.31
Sapphire (survey)
#2138AB
ΔE00 4.45
Royal
#0C1793
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.97
Ultramarine
#2000B1
ΔE00 6.34
Royal Blue (survey)
#0504AA
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2AA1 #9CA12A
analogous
#2A61A1 #2F2AA1 #6B2AA1
triadic
#2F2AA1 #A12F2A #2AA12F
tetradic
#2F2AA1 #A12A61 #9CA12A #2AA16B
square
#2F2AA1 #A12A61 #9CA12A #2AA16B
split-complementary
#2F2AA1 #A16B2A #61A12A
monochromatic
#131140 #211D70 #2F2AA1 #423CCC #716DD9
Accessibility & contrast
On white
10.68
#2F2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2F2AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2AA1
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2AA1 | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f2aa1; /* rgb */ color: rgb(47, 42, 161); /* oklch */ color: oklch(38.2% 0.183 275.2);
Tailwind
colors: {
custom: {
50: '#7965be',
500: '#2f2aa1',
950: '#000000',
},
}SCSS
$custom: #2f2aa1; $custom-light: #7965be; $custom-dark: #000000;
JSON
{
"hex": "#2f2aa1",
"rgb": {
"r": 47,
"g": 42,
"b": 161
},
"hsl": {
"h": 242.521,
"s": 58.621,
"l": 39.804
},
"oklch": {
"l": 0.38171,
"c": 0.18318,
"h": 275.2
},
"luminance": 0.04833
}Semantic roles & 50–950 ramp
primary
#2F2AA1
secondary
#BCC067
accent
#E246DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81