#2942AB#2942AB
#2942AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.170 H 268.0°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2942AB |
|---|---|
| RGB | rgb(41, 66, 171) |
| HSL | hsl(228, 61%, 42%) |
| HSV | hsv(228, 76%, 67%) |
| CMYK | cmyk(76%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.50, 28.66, -58.90) |
| CIE-LCH | lch(32.50, 65.50, 295.94°) |
| OKLab | oklab(42.91% -0.006 -0.1702) |
| OKLCH | oklch(42.91% 0.17 268) |
| XYZ | xyz(10.2108, 7.3070, 39.3924) |
| Luminance | 0.0731 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Cobalt
#0047AB
ΔE00 3.65
Blue Blue
#2242C7
ΔE00 3.75
Blueberry
#464196
ΔE00 5.33
Ocean Blue
#4F42B5
ΔE00 5.64
Cobalt (survey)
#1E488F
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2942AB #AB9229
analogous
#2983AB #2942AB #5129AB
triadic
#2942AB #AB2942 #42AB29
tetradic
#2942AB #AB2983 #AB9229 #29AB51
square
#2942AB #AB2983 #AB9229 #29AB51
split-complementary
#2942AB #AB5129 #83AB29
monochromatic
#111C48 #1D2F7A #2942AB #405CD1 #7186DD
Accessibility & contrast
On white
8.53
#2942AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2942AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2942AB
8.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2942AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2942AB | 1.00 | 8.53 | 2.46 | 8.53 |
| #FFFFFF | 8.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2942ab; /* rgb */ color: rgb(41, 66, 171); /* oklch */ color: oklch(42.9% 0.170 268.0);
Tailwind
colors: {
custom: {
50: '#7776c5',
500: '#2942ab',
950: '#000000',
},
}SCSS
$custom: #2942ab; $custom-light: #7776c5; $custom-dark: #000000;
JSON
{
"hex": "#2942ab",
"rgb": {
"r": 41,
"g": 66,
"b": 171
},
"hsl": {
"h": 228.462,
"s": 61.321,
"l": 41.569
},
"oklch": {
"l": 0.42908,
"c": 0.17029,
"h": 268
},
"luminance": 0.07308
}Semantic roles & 50–950 ramp
primary
#2942AB
secondary
#C4B36C
accent
#C543E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82