#2C4087#2C4087
#2C4087 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.121 H 268.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2C4087 |
|---|---|
| RGB | rgb(44, 64, 135) |
| HSL | hsl(227, 51%, 35%) |
| HSV | hsv(227, 67%, 53%) |
| CMYK | cmyk(67.4%, 52.6%, 0%, 47.1%) |
| CIE-LAB | lab(29.29, 16.78, -42.20) |
| CIE-LCH | lch(29.29, 45.41, 291.69°) |
| OKLab | oklab(39.66% -0.0031 -0.121) |
| OKLCH | oklch(39.66% 0.121 268.5) |
| XYZ | xyz(7.2438, 5.9509, 23.6839) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.06
Darkish Blue
#014182
ΔE00 5.02
Blueberry
#464196
ΔE00 5.36
Twilight Blue
#0A437A
ΔE00 5.87
Cobalt
#0047AB
ΔE00 5.98
Darkslateblue
#483D8B
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C4087 #87732C
analogous
#2C6E87 #2C4087 #452C87
triadic
#2C4087 #872C40 #40872C
tetradic
#2C4087 #872C6E #87732C #2C8745
square
#2C4087 #872C6E #87732C #2C8745
split-complementary
#2C4087 #87452C #6E872C
monochromatic
#0E142B #1D2A59 #2C4087 #3B56B5 #6279CC
Accessibility & contrast
On white
9.59
#2C4087 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#2C4087 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C4087
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C4087 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C4087 | 1.00 | 9.59 | 2.19 | 9.59 |
| #FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2c4087; /* rgb */ color: rgb(44, 64, 135); /* oklch */ color: oklch(39.7% 0.121 268.5);
Tailwind
colors: {
custom: {
50: '#7074aa',
500: '#2c4087',
950: '#000000',
},
}SCSS
$custom: #2c4087; $custom-light: #7074aa; $custom-dark: #000000;
JSON
{
"hex": "#2c4087",
"rgb": {
"r": 44,
"g": 64,
"b": 135
},
"hsl": {
"h": 226.813,
"s": 50.838,
"l": 35.098
},
"oklch": {
"l": 0.39659,
"c": 0.12109,
"h": 268.5
},
"luminance": 0.05952
}Semantic roles & 50–950 ramp
primary
#2C4087
secondary
#B29F5D
accent
#BB4DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F