#2B18A1#2B18A1
#2B18A1 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.7% C 0.200 H 275.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2B18A1 |
|---|---|
| RGB | rgb(43, 24, 161) |
| HSL | hsl(248, 74%, 36%) |
| HSV | hsv(248, 85%, 63%) |
| CMYK | cmyk(73.3%, 85.1%, 0%, 36.9%) |
| CIE-LAB | lab(22.79, 49.65, -68.84) |
| CIE-LCH | lch(22.79, 84.88, 305.80°) |
| OKLab | oklab(35.68% 0.0191 -0.199) |
| OKLCH | oklch(35.68% 0.2 275.5) |
| XYZ | xyz(7.7538, 3.7393, 34.0244) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.72
Indigo Blue
#3A18B1
ΔE00 2.77
Ultramarine
#2000B1
ΔE00 3.05
Royal Blue (survey)
#0504AA
ΔE00 3.07
Royal
#0C1793
ΔE00 3.11
True Blue
#010FCC
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B18A1 #8EA118
analogous
#184AA1 #2B18A1 #7018A1
triadic
#2B18A1 #A12B18 #18A12B
tetradic
#2B18A1 #A1184A #8EA118 #18A170
square
#2B18A1 #A1184A #8EA118 #18A170
split-complementary
#2B18A1 #A17018 #4AA118
monochromatic
#0F0836 #1D106C #2B18A1 #3920D6 #634FE5
Accessibility & contrast
On white
12.01
#2B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2B18A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B18A1
12.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B18A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B18A1 | 1.00 | 12.01 | 1.75 | 12.01 |
| #FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2b18a1; /* rgb */ color: rgb(43, 24, 161); /* oklch */ color: oklch(35.7% 0.200 275.5);
Tailwind
colors: {
custom: {
50: '#795bbe',
500: '#2b18a1',
950: '#000000',
},
}SCSS
$custom: #2b18a1; $custom-light: #795bbe; $custom-dark: #000000;
JSON
{
"hex": "#2b18a1",
"rgb": {
"r": 43,
"g": 24,
"b": 161
},
"hsl": {
"h": 248.321,
"s": 74.054,
"l": 36.275
},
"oklch": {
"l": 0.35676,
"c": 0.19987,
"h": 275.5
},
"luminance": 0.0374
}Semantic roles & 50–950 ramp
primary
#2B18A1
secondary
#B6C74E
accent
#F137D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981