#2642AB#2642AB
#2642AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 267.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2642AB |
|---|---|
| RGB | rgb(38, 66, 171) |
| HSL | hsl(227, 64%, 41%) |
| HSV | hsv(227, 78%, 67%) |
| CMYK | cmyk(77.8%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.36, 28.33, -59.12) |
| CIE-LCH | lch(32.36, 65.55, 295.60°) |
| OKLab | oklab(42.77% -0.0086 -0.1709) |
| OKLCH | oklch(42.77% 0.171 267.1) |
| XYZ | xyz(10.0957, 7.2476, 39.3870) |
| Luminance | 0.0725 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.05
Cobalt
#0047AB
ΔE00 3.38
Blue Blue
#2242C7
ΔE00 3.81
Blueberry
#464196
ΔE00 5.57
Cobalt (survey)
#1E488F
ΔE00 5.60
Ocean Blue
#4F42B5
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2642AB #AB8F26
analogous
#2684AB #2642AB #4C26AB
triadic
#2642AB #AB2642 #42AB26
tetradic
#2642AB #AB2684 #AB8F26 #26AB4C
square
#2642AB #AB2684 #AB8F26 #26AB4C
split-complementary
#2642AB #AB4C26 #84AB26
monochromatic
#101B47 #1B2F79 #2642AB #3B5BD3 #6D85DF
Accessibility & contrast
On white
8.57
#2642AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2642AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2642AB
8.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2642AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2642AB | 1.00 | 8.57 | 2.45 | 8.57 |
| #FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2642ab; /* rgb */ color: rgb(38, 66, 171); /* oklch */ color: oklch(42.8% 0.171 267.1);
Tailwind
colors: {
custom: {
50: '#7676c5',
500: '#2642ab',
950: '#000000',
},
}SCSS
$custom: #2642ab; $custom-light: #7676c5; $custom-dark: #000000;
JSON
{
"hex": "#2642ab",
"rgb": {
"r": 38,
"g": 66,
"b": 171
},
"hsl": {
"h": 227.368,
"s": 63.636,
"l": 40.98
},
"oklch": {
"l": 0.42774,
"c": 0.1711,
"h": 267.1
},
"luminance": 0.07249
}Semantic roles & 50–950 ramp
primary
#2642AB
secondary
#C5B168
accent
#C441E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82