#2B38AB#2B38AB
#2B38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.182 H 270.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2B38AB |
|---|---|
| RGB | rgb(43, 56, 171) |
| HSL | hsl(234, 60%, 42%) |
| HSV | hsv(234, 75%, 67%) |
| CMYK | cmyk(74.9%, 67.3%, 0%, 32.9%) |
| CIE-LAB | lab(30.11, 35.37, -62.80) |
| CIE-LCH | lch(30.11, 72.08, 299.39°) |
| OKLab | oklab(41.18% 0.0023 -0.1816) |
| OKLCH | oklch(41.18% 0.182 270.7) |
| XYZ | xyz(9.7586, 6.2812, 39.2183) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 0.93
Blue Blue
#2242C7
ΔE00 4.58
Ocean Blue
#4F42B5
ΔE00 5.29
Blueberry
#464196
ΔE00 5.39
Cobalt
#0047AB
ΔE00 6.49
Blue With A Hint Of Purple
#533CC6
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B38AB #AB9E2B
analogous
#2B78AB #2B38AB #5E2BAB
triadic
#2B38AB #AB2B38 #38AB2B
tetradic
#2B38AB #AB2B78 #AB9E2B #2BAB5E
square
#2B38AB #AB2B78 #AB9E2B #2BAB5E
split-complementary
#2B38AB #AB5E2B #78AB2B
monochromatic
#121849 #1F287A #2B38AB #4352D0 #747FDC
Accessibility & contrast
On white
9.31
#2B38AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2B38AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B38AB
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B38AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B38AB | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2b38ab; /* rgb */ color: rgb(43, 56, 171); /* oklch */ color: oklch(41.2% 0.182 270.7);
Tailwind
colors: {
custom: {
50: '#786fc5',
500: '#2b38ab',
950: '#000000',
},
}SCSS
$custom: #2b38ab; $custom-light: #786fc5; $custom-dark: #000000;
JSON
{
"hex": "#2b38ab",
"rgb": {
"r": 43,
"g": 56,
"b": 171
},
"hsl": {
"h": 233.906,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.41181,
"c": 0.18165,
"h": 270.7
},
"luminance": 0.06282
}Semantic roles & 50–950 ramp
primary
#2B38AB
secondary
#C4BB6E
accent
#D345E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82