#2A3FA1#2A3FA1
#2A3FA1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.160 H 269.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3FA1 |
|---|---|
| RGB | rgb(42, 63, 161) |
| HSL | hsl(229, 59%, 40%) |
| HSV | hsv(229, 74%, 63%) |
| CMYK | cmyk(73.9%, 60.9%, 0%, 36.9%) |
| CIE-LAB | lab(30.92, 27.01, -55.45) |
| CIE-LCH | lch(30.92, 61.68, 295.97°) |
| OKLab | oklab(41.49% -0.0029 -0.1601) |
| OKLCH | oklch(41.49% 0.16 269) |
| XYZ | xyz(9.1632, 6.6195, 34.5061) |
| Luminance | 0.0662 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.68
Cobalt
#0047AB
ΔE00 4.35
Blueberry
#464196
ΔE00 4.60
Blue Blue
#2242C7
ΔE00 5.15
Cobalt (survey)
#1E488F
ΔE00 5.57
Ocean Blue
#4F42B5
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3FA1 #A18C2A
analogous
#2A7AA1 #2A3FA1 #512AA1
triadic
#2A3FA1 #A12A3F #3FA12A
tetradic
#2A3FA1 #A12A7A #A18C2A #2AA151
square
#2A3FA1 #A12A7A #A18C2A #2AA151
split-complementary
#2A3FA1 #A1512A #7AA12A
monochromatic
#111940 #1D2C70 #2A3FA1 #3C55CC #6D80D9
Accessibility & contrast
On white
9.04
#2A3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#2A3FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3FA1
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3FA1 | 1.00 | 9.04 | 2.32 | 9.04 |
| #FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a3fa1; /* rgb */ color: rgb(42, 63, 161); /* oklch */ color: oklch(41.5% 0.160 269.0);
Tailwind
colors: {
custom: {
50: '#7573be',
500: '#2a3fa1',
950: '#000000',
},
}SCSS
$custom: #2a3fa1; $custom-light: #7573be; $custom-dark: #000000;
JSON
{
"hex": "#2a3fa1",
"rgb": {
"r": 42,
"g": 63,
"b": 161
},
"hsl": {
"h": 229.412,
"s": 58.621,
"l": 39.804
},
"oklch": {
"l": 0.41493,
"c": 0.16011,
"h": 269
},
"luminance": 0.0662
}Semantic roles & 50–950 ramp
primary
#2A3FA1
secondary
#C0B067
accent
#C646E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81