#2640AF#2640AF
#2640AF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.179 H 267.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2640AF |
|---|---|
| RGB | rgb(38, 64, 175) |
| HSL | hsl(229, 64%, 42%) |
| HSV | hsv(229, 78%, 69%) |
| CMYK | cmyk(78.3%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(32.20, 31.16, -61.78) |
| CIE-LCH | lch(32.20, 69.19, 296.76°) |
| OKLab | oklab(42.76% -0.0074 -0.1787) |
| OKLCH | oklch(42.76% 0.179 267.6) |
| XYZ | xyz(10.3679, 7.1728, 41.3872) |
| Luminance | 0.0717 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.37
Blue Blue
#2242C7
ΔE00 3.22
Cobalt
#0047AB
ΔE00 4.11
Ocean Blue
#4F42B5
ΔE00 5.46
Blueberry
#464196
ΔE00 5.67
Blue (survey)
#0343DF
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2640AF #AF9526
analogous
#2685AF #2640AF #5126AF
triadic
#2640AF #AF2640 #40AF26
tetradic
#2640AF #AF2685 #AF9526 #26AF51
square
#2640AF #AF2685 #AF9526 #26AF51
split-complementary
#2640AF #AF5126 #85AF26
monochromatic
#101B4A #1B2E7D #2640AF #3D5AD5 #7085E0
Accessibility & contrast
On white
8.62
#2640AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2640AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2640AF
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2640AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2640AF | 1.00 | 8.62 | 2.43 | 8.62 |
| #FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2640af; /* rgb */ color: rgb(38, 64, 175); /* oklch */ color: oklch(42.8% 0.179 267.6);
Tailwind
colors: {
custom: {
50: '#7774c8',
500: '#2640af',
950: '#000000',
},
}SCSS
$custom: #2640af; $custom-light: #7774c8; $custom-dark: #000000;
JSON
{
"hex": "#2640af",
"rgb": {
"r": 38,
"g": 64,
"b": 175
},
"hsl": {
"h": 228.613,
"s": 64.319,
"l": 41.765
},
"oklch": {
"l": 0.42757,
"c": 0.17885,
"h": 267.6
},
"luminance": 0.07174
}Semantic roles & 50–950 ramp
primary
#2640AF
secondary
#C7B56A
accent
#C840E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82