#2A2D98#2A2D98
#2A2D98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.170 H 273.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2D98 |
|---|---|
| RGB | rgb(42, 45, 152) |
| HSL | hsl(238, 57%, 38%) |
| HSV | hsv(238, 72%, 60%) |
| CMYK | cmyk(72.4%, 70.4%, 0%, 40.4%) |
| CIE-LAB | lab(25.67, 35.41, -58.58) |
| CIE-LCH | lch(25.67, 68.45, 301.15°) |
| OKLab | oklab(37.39% 0.01 -0.1694) |
| OKLCH | oklch(37.39% 0.17 273.4) |
| XYZ | xyz(7.5588, 4.6353, 30.1960) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.07
Royal
#0C1793
ΔE00 5.37
Indigo Blue
#3A18B1
ΔE00 6.07
Blueberry
#464196
ΔE00 6.43
Darkslateblue
#483D8B
ΔE00 6.63
Cobalt Blue
#030AA7
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2D98 #98952A
analogous
#2A6498 #2A2D98 #5E2A98
triadic
#2A2D98 #982A2D #2D982A
tetradic
#2A2D98 #982A64 #98952A #2A985E
square
#2A2D98 #982A64 #98952A #2A985E
split-complementary
#2A2D98 #985E2A #64982A
monochromatic
#101138 #1D1F68 #2A2D98 #373BC8 #676AD5
Accessibility & contrast
On white
10.90
#2A2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2A2D98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2D98
10.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2D98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2D98 | 1.00 | 10.90 | 1.93 | 10.90 |
| #FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a2d98; /* rgb */ color: rgb(42, 45, 152); /* oklch */ color: oklch(37.4% 0.170 273.4);
Tailwind
colors: {
custom: {
50: '#7466b7',
500: '#2a2d98',
950: '#000000',
},
}SCSS
$custom: #2a2d98; $custom-light: #7466b7; $custom-dark: #000000;
JSON
{
"hex": "#2a2d98",
"rgb": {
"r": 42,
"g": 45,
"b": 152
},
"hsl": {
"h": 238.364,
"s": 56.701,
"l": 38.039
},
"oklch": {
"l": 0.37394,
"c": 0.16966,
"h": 273.4
},
"luminance": 0.04636
}Semantic roles & 50–950 ramp
primary
#2A2D98
secondary
#BBB962
accent
#DC48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80