#2731AA#2731AA
#2731AA is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.189 H 270.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2731AA |
|---|---|
| RGB | rgb(39, 49, 170) |
| HSL | hsl(235, 63%, 41%) |
| HSV | hsv(235, 77%, 67%) |
| CMYK | cmyk(77.1%, 71.2%, 0%, 33.3%) |
| CIE-LAB | lab(28.19, 38.99, -65.36) |
| CIE-LCH | lch(28.19, 76.11, 300.82°) |
| OKLab | oklab(39.71% 0.0021 -0.1892) |
| OKLCH | oklch(39.71% 0.189 270.6) |
| XYZ | xyz(9.1882, 5.5292, 38.6054) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.21
Indigo Blue
#3A18B1
ΔE00 5.79
Blue Blue
#2242C7
ΔE00 5.97
Ocean Blue
#4F42B5
ΔE00 6.40
Blueberry
#464196
ΔE00 6.51
Royal
#0C1793
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2731AA #AAA027
analogous
#2772AA #2731AA #5E27AA
triadic
#2731AA #AA2731 #31AA27
tetradic
#2731AA #AA2772 #AAA027 #27AA5E
square
#2731AA #AA2772 #AAA027 #27AA5E
split-complementary
#2731AA #AA5E27 #72AA27
monochromatic
#101446 #1C2378 #2731AA #3C47D2 #6E76DE
Accessibility & contrast
On white
9.97
#2731AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#2731AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2731AA
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2731AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2731AA | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2731aa; /* rgb */ color: rgb(39, 49, 170); /* oklch */ color: oklch(39.7% 0.189 270.6);
Tailwind
colors: {
custom: {
50: '#776ac4',
500: '#2731aa',
950: '#000000',
},
}SCSS
$custom: #2731aa; $custom-light: #776ac4; $custom-dark: #000000;
JSON
{
"hex": "#2731aa",
"rgb": {
"r": 39,
"g": 49,
"b": 170
},
"hsl": {
"h": 235.42,
"s": 62.679,
"l": 40.98
},
"oklch": {
"l": 0.39706,
"c": 0.18923,
"h": 270.6
},
"luminance": 0.0553
}Semantic roles & 50–950 ramp
primary
#2731AA
secondary
#C4BD69
accent
#D942E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82