#2640AB#2640AB
#2640AB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.174 H 267.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2640AB |
|---|---|
| RGB | rgb(38, 64, 171) |
| HSL | hsl(228, 64%, 41%) |
| HSV | hsv(228, 78%, 67%) |
| CMYK | cmyk(77.8%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(31.85, 29.65, -59.96) |
| CIE-LCH | lch(31.85, 66.89, 296.31°) |
| OKLab | oklab(42.39% -0.0073 -0.1734) |
| OKLCH | oklch(42.39% 0.174 267.6) |
| XYZ | xyz(9.9809, 7.0180, 39.3488) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.40
Blue Blue
#2242C7
ΔE00 3.77
Cobalt
#0047AB
ΔE00 3.91
Blueberry
#464196
ΔE00 5.44
Ocean Blue
#4F42B5
ΔE00 5.74
Cobalt (survey)
#1E488F
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2640AB #AB9126
analogous
#2682AB #2640AB #4F26AB
triadic
#2640AB #AB2640 #40AB26
tetradic
#2640AB #AB2682 #AB9126 #26AB4F
square
#2640AB #AB2682 #AB9126 #26AB4F
split-complementary
#2640AB #AB4F26 #82AB26
monochromatic
#101B47 #1B2D79 #2640AB #3B59D3 #6D83DF
Accessibility & contrast
On white
8.74
#2640AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2640AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2640AB
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2640AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2640AB | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2640ab; /* rgb */ color: rgb(38, 64, 171); /* oklch */ color: oklch(42.4% 0.174 267.6);
Tailwind
colors: {
custom: {
50: '#7674c5',
500: '#2640ab',
950: '#000000',
},
}SCSS
$custom: #2640ab; $custom-light: #7674c5; $custom-dark: #000000;
JSON
{
"hex": "#2640ab",
"rgb": {
"r": 38,
"g": 64,
"b": 171
},
"hsl": {
"h": 228.271,
"s": 63.636,
"l": 40.98
},
"oklch": {
"l": 0.42391,
"c": 0.17354,
"h": 267.6
},
"luminance": 0.07019
}Semantic roles & 50–950 ramp
primary
#2640AB
secondary
#C5B368
accent
#C641E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82