#2A45BF#2A45BF
#2A45BF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.193 H 267.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45BF |
|---|---|
| RGB | rgb(42, 69, 191) |
| HSL | hsl(229, 64%, 46%) |
| HSV | hsv(229, 78%, 75%) |
| CMYK | cmyk(78%, 63.9%, 0%, 25.1%) |
| CIE-LAB | lab(35.02, 34.24, -66.61) |
| CIE-LCH | lch(35.02, 74.89, 297.21°) |
| OKLab | oklab(45.32% -0.0073 -0.1927) |
| OKLCH | oklch(45.32% 0.193 267.8) |
| XYZ | xyz(12.4837, 8.5087, 50.2645) |
| Luminance | 0.0851 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.34
Blue (survey)
#0343DF
ΔE00 3.86
Sapphire (survey)
#2138AB
ΔE00 4.51
Cobalt
#0047AB
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.00
Sapphire
#0F52BA
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45BF #BFA42A
analogous
#2A8FBF #2A45BF #5A2ABF
triadic
#2A45BF #BF2A45 #45BF2A
tetradic
#2A45BF #BF2A8F #BFA42A #2ABF5A
square
#2A45BF #BF2A8F #BFA42A #2ABF5A
split-complementary
#2A45BF #BF5A2A #8FBF2A
monochromatic
#14215B #1F338D #2A45BF #4E67D8 #8092E3
Accessibility & contrast
On white
7.77
#2A45BF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#2A45BF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45BF
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45BF | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2a45bf; /* rgb */ color: rgb(42, 69, 191); /* oklch */ color: oklch(45.3% 0.193 267.8);
Tailwind
colors: {
custom: {
50: '#7c78d3',
500: '#2a45bf',
950: '#000000',
},
}SCSS
$custom: #2a45bf; $custom-light: #7c78d3; $custom-dark: #000000;
JSON
{
"hex": "#2a45bf",
"rgb": {
"r": 42,
"g": 69,
"b": 191
},
"hsl": {
"h": 229.128,
"s": 63.948,
"l": 45.686
},
"oklch": {
"l": 0.45319,
"c": 0.19285,
"h": 267.8
},
"luminance": 0.0851
}Semantic roles & 50–950 ramp
primary
#2A45BF
secondary
#CCBD79
accent
#C941E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83