#2A45C2#2A45C2
#2A45C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.197 H 267.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45C2 |
|---|---|
| RGB | rgb(42, 69, 194) |
| HSL | hsl(229, 64%, 46%) |
| HSV | hsv(229, 78%, 76%) |
| CMYK | cmyk(78.4%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(35.29, 35.34, -67.93) |
| CIE-LCH | lch(35.29, 76.57, 297.49°) |
| OKLab | oklab(45.6% -0.0074 -0.1966) |
| OKLCH | oklch(45.6% 0.197 267.8) |
| XYZ | xyz(12.8172, 8.6421, 52.0210) |
| Luminance | 0.0864 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.08
Blue (survey)
#0343DF
ΔE00 3.48
Sapphire (survey)
#2138AB
ΔE00 4.75
Ocean Blue
#4F42B5
ΔE00 4.98
Cobalt
#0047AB
ΔE00 5.09
Sapphire
#0F52BA
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45C2 #C2A72A
analogous
#2A91C2 #2A45C2 #5B2AC2
triadic
#2A45C2 #C22A45 #45C22A
tetradic
#2A45C2 #C22A91 #C2A72A #2AC25B
square
#2A45C2 #C22A91 #C2A72A #2AC25B
split-complementary
#2A45C2 #C25B2A #91C22A
monochromatic
#14215D #1F3390 #2A45C2 #5068D9 #8294E4
Accessibility & contrast
On white
7.70
#2A45C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#2A45C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45C2
7.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45C2 | 1.00 | 7.70 | 2.73 | 7.70 |
| #FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2a45c2; /* rgb */ color: rgb(42, 69, 194); /* oklch */ color: oklch(45.6% 0.197 267.8);
Tailwind
colors: {
custom: {
50: '#7c78d6',
500: '#2a45c2',
950: '#000000',
},
}SCSS
$custom: #2a45c2; $custom-light: #7c78d6; $custom-dark: #000000;
JSON
{
"hex": "#2a45c2",
"rgb": {
"r": 42,
"g": 69,
"b": 194
},
"hsl": {
"h": 229.342,
"s": 64.407,
"l": 46.275
},
"oklch": {
"l": 0.45595,
"c": 0.19672,
"h": 267.8
},
"luminance": 0.08644
}Semantic roles & 50–950 ramp
primary
#2A45C2
secondary
#CDBE7B
accent
#CA40E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83