#2A2F9C#2A2F9C
#2A2F9C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.173 H 272.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F9C |
|---|---|
| RGB | rgb(42, 47, 156) |
| HSL | hsl(237, 58%, 39%) |
| HSV | hsv(237, 73%, 61%) |
| CMYK | cmyk(73.1%, 69.9%, 0%, 38.8%) |
| CIE-LAB | lab(26.52, 35.58, -59.63) |
| CIE-LCH | lch(26.52, 69.44, 300.82°) |
| OKLab | oklab(38.13% 0.0082 -0.1724) |
| OKLCH | oklch(38.13% 0.173 272.7) |
| XYZ | xyz(7.9701, 4.9248, 31.9766) |
| Luminance | 0.0493 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.34
Royal
#0C1793
ΔE00 5.91
Blueberry
#464196
ΔE00 6.12
Indigo Blue
#3A18B1
ΔE00 6.13
Darkslateblue
#483D8B
ΔE00 6.57
Cobalt Blue
#030AA7
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F9C #9C972A
analogous
#2A689C #2A2F9C #5E2A9C
triadic
#2A2F9C #9C2A2F #2F9C2A
tetradic
#2A2F9C #9C2A68 #9C972A #2A9C5E
square
#2A2F9C #9C2A68 #9C972A #2A9C5E
split-complementary
#2A2F9C #9C5E2A #689C2A
monochromatic
#10123C #1D206C #2A2F9C #3940CA #6A6ED7
Accessibility & contrast
On white
10.58
#2A2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2A2F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F9C
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F9C | 1.00 | 10.58 | 1.99 | 10.58 |
| #FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2a2f9c; /* rgb */ color: rgb(42, 47, 156); /* oklch */ color: oklch(38.1% 0.173 272.7);
Tailwind
colors: {
custom: {
50: '#7568ba',
500: '#2a2f9c',
950: '#000000',
},
}SCSS
$custom: #2a2f9c; $custom-light: #7568ba; $custom-dark: #000000;
JSON
{
"hex": "#2a2f9c",
"rgb": {
"r": 42,
"g": 47,
"b": 156
},
"hsl": {
"h": 237.368,
"s": 57.576,
"l": 38.824
},
"oklch": {
"l": 0.38126,
"c": 0.17263,
"h": 272.7
},
"luminance": 0.04926
}Semantic roles & 50–950 ramp
primary
#2A2F9C
secondary
#BDB965
accent
#DA47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81