#2B45A1#2B45A1
#2B45A1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.152 H 267.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2B45A1 |
|---|---|
| RGB | rgb(43, 69, 161) |
| HSL | hsl(227, 58%, 40%) |
| HSV | hsv(227, 73%, 63%) |
| CMYK | cmyk(73.3%, 57.1%, 0%, 36.9%) |
| CIE-LAB | lab(32.57, 23.12, -52.77) |
| CIE-LCH | lch(32.57, 57.61, 293.66°) |
| OKLab | oklab(42.74% -0.0066 -0.1521) |
| OKLCH | oklch(42.74% 0.152 267.5) |
| XYZ | xyz(9.5552, 7.3420, 34.6249) |
| Luminance | 0.0734 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.06
Cobalt (survey)
#1E488F
ΔE00 4.11
Sapphire (survey)
#2138AB
ΔE00 4.47
Blueberry
#464196
ΔE00 5.21
Blue Blue
#2242C7
ΔE00 5.38
Sapphire
#0F52BA
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B45A1 #A1872B
analogous
#2B80A1 #2B45A1 #4C2BA1
triadic
#2B45A1 #A12B45 #45A12B
tetradic
#2B45A1 #A12B80 #A1872B #2BA14C
square
#2B45A1 #A12B80 #A1872B #2BA14C
split-complementary
#2B45A1 #A14C2B #80A12B
monochromatic
#111C40 #1E3071 #2B45A1 #3E5DCB #6E85D8
Accessibility & contrast
On white
8.51
#2B45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2B45A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B45A1
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B45A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B45A1 | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b45a1; /* rgb */ color: rgb(43, 69, 161); /* oklch */ color: oklch(42.7% 0.152 267.5);
Tailwind
colors: {
custom: {
50: '#7578be',
500: '#2b45a1',
950: '#000000',
},
}SCSS
$custom: #2b45a1; $custom-light: #7578be; $custom-dark: #000000;
JSON
{
"hex": "#2b45a1",
"rgb": {
"r": 43,
"g": 69,
"b": 161
},
"hsl": {
"h": 226.78,
"s": 57.843,
"l": 40
},
"oklch": {
"l": 0.42738,
"c": 0.15223,
"h": 267.5
},
"luminance": 0.07343
}Semantic roles & 50–950 ramp
primary
#2B45A1
secondary
#BFAC69
accent
#BF47E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81