#2C38AB#2C38AB
#2C38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.181 H 271.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2C38AB |
|---|---|
| RGB | rgb(44, 56, 171) |
| HSL | hsl(234, 59%, 42%) |
| HSV | hsv(234, 74%, 67%) |
| CMYK | cmyk(74.3%, 67.3%, 0%, 32.9%) |
| CIE-LAB | lab(30.16, 35.48, -62.71) |
| CIE-LCH | lch(30.16, 72.05, 299.50°) |
| OKLab | oklab(41.23% 0.0034 -0.1814) |
| OKLCH | oklch(41.23% 0.181 271.1) |
| XYZ | xyz(9.8011, 6.3031, 39.2203) |
| Luminance | 0.0630 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.03
Blue Blue
#2242C7
ΔE00 4.59
Ocean Blue
#4F42B5
ΔE00 5.20
Blueberry
#464196
ΔE00 5.34
Blue With A Hint Of Purple
#533CC6
ΔE00 6.48
Cobalt
#0047AB
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C38AB #AB9F2C
analogous
#2C77AB #2C38AB #602CAB
triadic
#2C38AB #AB2C38 #38AB2C
tetradic
#2C38AB #AB2C77 #AB9F2C #2CAB60
square
#2C38AB #AB2C77 #AB9F2C #2CAB60
split-complementary
#2C38AB #AB602C #77AB2C
monochromatic
#13184A #1F287A #2C38AB #4552CF #767FDC
Accessibility & contrast
On white
9.29
#2C38AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2C38AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C38AB
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C38AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C38AB | 1.00 | 9.29 | 2.26 | 9.29 |
| #FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.29 | 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: #2c38ab; /* rgb */ color: rgb(44, 56, 171); /* oklch */ color: oklch(41.2% 0.181 271.1);
Tailwind
colors: {
custom: {
50: '#796fc5',
500: '#2c38ab',
950: '#000000',
},
}SCSS
$custom: #2c38ab; $custom-light: #796fc5; $custom-dark: #000000;
JSON
{
"hex": "#2c38ab",
"rgb": {
"r": 44,
"g": 56,
"b": 171
},
"hsl": {
"h": 234.331,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.41234,
"c": 0.18139,
"h": 271.1
},
"luminance": 0.06304
}Semantic roles & 50–950 ramp
primary
#2C38AB
secondary
#C3BB6F
accent
#D346E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82