#2C418A#2C418A
#2C418A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.124 H 268.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2C418A |
|---|---|
| RGB | rgb(44, 65, 138) |
| HSL | hsl(227, 52%, 36%) |
| HSV | hsv(227, 68%, 54%) |
| CMYK | cmyk(68.1%, 52.9%, 0%, 45.9%) |
| CIE-LAB | lab(29.79, 17.24, -43.25) |
| CIE-LCH | lch(29.79, 46.55, 291.73°) |
| OKLab | oklab(40.11% -0.0038 -0.1241) |
| OKLCH | oklch(40.11% 0.124 268.3) |
| XYZ | xyz(7.5149, 6.1503, 24.8309) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.75
Darkish Blue
#014182
ΔE00 4.98
Blueberry
#464196
ΔE00 5.25
Cobalt
#0047AB
ΔE00 5.50
Twilight Blue
#0A437A
ΔE00 5.86
Sapphire (survey)
#2138AB
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C418A #8A752C
analogous
#2C708A #2C418A #462C8A
triadic
#2C418A #8A2C41 #418A2C
tetradic
#2C418A #8A2C70 #8A752C #2C8A46
square
#2C418A #8A2C70 #8A752C #2C8A46
split-complementary
#2C418A #8A462C #708A2C
monochromatic
#0E152D #1D2B5C #2C418A #3B57B8 #637BCD
Accessibility & contrast
On white
9.42
#2C418A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2C418A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C418A
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C418A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C418A | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2c418a; /* rgb */ color: rgb(44, 65, 138); /* oklch */ color: oklch(40.1% 0.124 268.3);
Tailwind
colors: {
custom: {
50: '#7075ad',
500: '#2c418a',
950: '#000000',
},
}SCSS
$custom: #2c418a; $custom-light: #7075ad; $custom-dark: #000000;
JSON
{
"hex": "#2c418a",
"rgb": {
"r": 44,
"g": 65,
"b": 138
},
"hsl": {
"h": 226.596,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.40107,
"c": 0.12418,
"h": 268.3
},
"luminance": 0.06151
}Semantic roles & 50–950 ramp
primary
#2C418A
secondary
#B4A15E
accent
#BB4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F