#2F2AAA#2F2AAA
#2F2AAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.194 H 274.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2AAA |
|---|---|
| RGB | rgb(47, 42, 170) |
| HSL | hsl(242, 60%, 42%) |
| HSV | hsv(242, 75%, 67%) |
| CMYK | cmyk(72.4%, 75.3%, 0%, 33.3%) |
| CIE-LAB | lab(27.19, 43.85, -67.00) |
| CIE-LCH | lch(27.19, 80.07, 303.21°) |
| OKLab | oklab(39.12% 0.0148 -0.1938) |
| OKLCH | oklch(39.12% 0.194 274.4) |
| XYZ | xyz(9.2535, 5.1616, 38.5310) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.73
Sapphire (survey)
#2138AB
ΔE00 4.31
True Blue
#010FCC
ΔE00 5.56
Royal
#0C1793
ΔE00 5.73
Cobalt Blue
#030AA7
ΔE00 5.95
Ultramarine
#2000B1
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2AAA #A5AA2A
analogous
#2A65AA #2F2AAA #6F2AAA
triadic
#2F2AAA #AA2F2A #2AAA2F
tetradic
#2F2AAA #AA2A65 #A5AA2A #2AAA6F
square
#2F2AAA #AA2A65 #A5AA2A #2AAA6F
split-complementary
#2F2AAA #AA6F2A #65AA2A
monochromatic
#141248 #211E79 #2F2AAA #4741D0 #7672DC
Accessibility & contrast
On white
10.33
#2F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#2F2AAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2AAA
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2AAA | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2f2aaa; /* rgb */ color: rgb(47, 42, 170); /* oklch */ color: oklch(39.1% 0.194 274.4);
Tailwind
colors: {
custom: {
50: '#7b66c5',
500: '#2f2aaa',
950: '#000000',
},
}SCSS
$custom: #2f2aaa; $custom-light: #7b66c5; $custom-dark: #000000;
JSON
{
"hex": "#2f2aaa",
"rgb": {
"r": 47,
"g": 42,
"b": 170
},
"hsl": {
"h": 242.344,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.39117,
"c": 0.19434,
"h": 274.4
},
"luminance": 0.05163
}Semantic roles & 50–950 ramp
primary
#2F2AAA
secondary
#C0C36C
accent
#E444DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82