#2C338C#2C338C
#2C338C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.146 H 273.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2C338C |
|---|---|
| RGB | rgb(44, 51, 140) |
| HSL | hsl(236, 52%, 36%) |
| HSV | hsv(236, 69%, 55%) |
| CMYK | cmyk(68.6%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(26.15, 27.47, -50.40) |
| CIE-LCH | lch(26.15, 57.40, 298.59°) |
| OKLab | oklab(37.44% 0.0091 -0.1453) |
| OKLCH | oklch(37.44% 0.146 273.6) |
| XYZ | xyz(6.9546, 4.7959, 25.3651) |
| Luminance | 0.0480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.68
Darkslateblue
#483D8B
ΔE00 5.14
Blueberry
#464196
ΔE00 5.14
Royal
#0C1793
ΔE00 7.44
Midnight Blue
#191970
ΔE00 7.71
Cobalt (survey)
#1E488F
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C338C #8C852C
analogous
#2C638C #2C338C #552C8C
triadic
#2C338C #8C2C33 #338C2C
tetradic
#2C338C #8C2C63 #8C852C #2C8C55
square
#2C338C #8C2C63 #8C852C #2C8C55
split-complementary
#2C338C #8C552C #638C2C
monochromatic
#0F112F #1D225D #2C338C #3B44BB #646CCE
Accessibility & contrast
On white
10.72
#2C338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2C338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C338C
10.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C338C | 1.00 | 10.72 | 1.96 | 10.72 |
| #FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2c338c; /* rgb */ color: rgb(44, 51, 140); /* oklch */ color: oklch(37.4% 0.146 273.6);
Tailwind
colors: {
custom: {
50: '#726aae',
500: '#2c338c',
950: '#000000',
},
}SCSS
$custom: #2c338c; $custom-light: #726aae; $custom-dark: #000000;
JSON
{
"hex": "#2c338c",
"rgb": {
"r": 44,
"g": 51,
"b": 140
},
"hsl": {
"h": 235.625,
"s": 52.174,
"l": 36.078
},
"oklch": {
"l": 0.37435,
"c": 0.1456,
"h": 273.6
},
"luminance": 0.04797
}Semantic roles & 50–950 ramp
primary
#2C338C
secondary
#B5AE5F
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F