#2A45C0#2A45C0
#2A45C0 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.194 H 267.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45C0 |
|---|---|
| RGB | rgb(42, 69, 192) |
| HSL | hsl(229, 64%, 46%) |
| HSV | hsv(229, 78%, 75%) |
| CMYK | cmyk(78.1%, 64.1%, 0%, 24.7%) |
| CIE-LAB | lab(35.11, 34.61, -67.05) |
| CIE-LCH | lch(35.11, 75.45, 297.30°) |
| OKLab | oklab(45.41% -0.0074 -0.194) |
| OKLCH | oklch(45.41% 0.194 267.8) |
| XYZ | xyz(12.5941, 8.5528, 50.8461) |
| Luminance | 0.0855 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.24
Blue (survey)
#0343DF
ΔE00 3.73
Sapphire (survey)
#2138AB
ΔE00 4.59
Cobalt
#0047AB
ΔE00 4.87
Ocean Blue
#4F42B5
ΔE00 4.99
Sapphire
#0F52BA
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45C0 #C0A52A
analogous
#2A90C0 #2A45C0 #5A2AC0
triadic
#2A45C0 #C02A45 #45C02A
tetradic
#2A45C0 #C02A90 #C0A52A #2AC05A
square
#2A45C0 #C02A90 #C0A52A #2AC05A
split-complementary
#2A45C0 #C05A2A #90C02A
monochromatic
#14215C #1F338E #2A45C0 #4F68D8 #8193E3
Accessibility & contrast
On white
7.75
#2A45C0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#2A45C0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45C0
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45C0 | 1.00 | 7.75 | 2.71 | 7.75 |
| #FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2a45c0; /* rgb */ color: rgb(42, 69, 192); /* oklch */ color: oklch(45.4% 0.194 267.8);
Tailwind
colors: {
custom: {
50: '#7c78d4',
500: '#2a45c0',
950: '#000000',
},
}SCSS
$custom: #2a45c0; $custom-light: #7c78d4; $custom-dark: #000000;
JSON
{
"hex": "#2a45c0",
"rgb": {
"r": 42,
"g": 69,
"b": 192
},
"hsl": {
"h": 229.2,
"s": 64.103,
"l": 45.882
},
"oklch": {
"l": 0.45411,
"c": 0.19414,
"h": 267.8
},
"luminance": 0.08554
}Semantic roles & 50–950 ramp
primary
#2A45C0
secondary
#CCBD7A
accent
#C941E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83