#2B418E#2B418E
#2B418E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.130 H 268.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2B418E |
|---|---|
| RGB | rgb(43, 65, 142) |
| HSL | hsl(227, 54%, 36%) |
| HSV | hsv(227, 70%, 56%) |
| CMYK | cmyk(69.7%, 54.2%, 0%, 44.3%) |
| CIE-LAB | lab(30.03, 18.59, -45.33) |
| CIE-LCH | lch(30.03, 48.99, 292.30°) |
| OKLab | oklab(40.36% -0.0044 -0.1303) |
| OKLCH | oklch(40.36% 0.13 268.1) |
| XYZ | xyz(7.7674, 6.2464, 26.3823) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.70
Cobalt
#0047AB
ΔE00 5.01
Blueberry
#464196
ΔE00 5.08
Darkish Blue
#014182
ΔE00 5.10
Sapphire (survey)
#2138AB
ΔE00 5.58
Twilight Blue
#0A437A
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B418E #8E782B
analogous
#2B738E #2B418E #472B8E
triadic
#2B418E #8E2B41 #418E2B
tetradic
#2B418E #8E2B73 #8E782B #2B8E47
square
#2B418E #8E2B73 #8E782B #2B8E47
split-complementary
#2B418E #8E472B #738E2B
monochromatic
#0F1630 #1D2B5F #2B418E #3957BD #637CD0
Accessibility & contrast
On white
9.34
#2B418E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#2B418E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B418E
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B418E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B418E | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D4B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2b418e; /* rgb */ color: rgb(43, 65, 142); /* oklch */ color: oklch(40.4% 0.130 268.1);
Tailwind
colors: {
custom: {
50: '#7175b0',
500: '#2b418e',
950: '#000000',
},
}SCSS
$custom: #2b418e; $custom-light: #7175b0; $custom-dark: #000000;
JSON
{
"hex": "#2b418e",
"rgb": {
"r": 43,
"g": 65,
"b": 142
},
"hsl": {
"h": 226.667,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.40364,
"c": 0.13035,
"h": 268.1
},
"luminance": 0.06247
}Semantic roles & 50–950 ramp
primary
#2B418E
secondary
#B6A35F
accent
#BC4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F