#2C338A#2C338A
#2C338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.143 H 273.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C338A |
|---|---|
| RGB | rgb(44, 51, 138) |
| HSL | hsl(236, 52%, 36%) |
| HSV | hsv(236, 68%, 54%) |
| CMYK | cmyk(68.1%, 63%, 0%, 45.9%) |
| CIE-LAB | lab(25.97, 26.73, -49.44) |
| CIE-LCH | lch(25.97, 56.20, 298.40°) |
| OKLab | oklab(37.26% 0.0091 -0.1425) |
| OKLCH | oklch(37.26% 0.143 273.7) |
| XYZ | xyz(6.8085, 4.7375, 24.5955) |
| Luminance | 0.0474 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.97
Darkslateblue
#483D8B
ΔE00 5.10
Blueberry
#464196
ΔE00 5.21
Royal
#0C1793
ΔE00 7.57
Midnight Blue
#191970
ΔE00 7.62
Cobalt (survey)
#1E488F
ΔE00 8.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C338A #8A832C
analogous
#2C628A #2C338A #542C8A
triadic
#2C338A #8A2C33 #338A2C
tetradic
#2C338A #8A2C62 #8A832C #2C8A54
square
#2C338A #8A2C62 #8A832C #2C8A54
split-complementary
#2C338A #8A542C #628A2C
monochromatic
#0E112D #1D225C #2C338A #3B44B8 #636BCD
Accessibility & contrast
On white
10.78
#2C338A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2C338A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C338A
10.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C338A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C338A | 1.00 | 10.78 | 1.95 | 10.78 |
| #FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2c338a; /* rgb */ color: rgb(44, 51, 138); /* oklch */ color: oklch(37.3% 0.143 273.7);
Tailwind
colors: {
custom: {
50: '#716aad',
500: '#2c338a',
950: '#000000',
},
}SCSS
$custom: #2c338a; $custom-light: #716aad; $custom-dark: #000000;
JSON
{
"hex": "#2c338a",
"rgb": {
"r": 44,
"g": 51,
"b": 138
},
"hsl": {
"h": 235.532,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.37255,
"c": 0.14279,
"h": 273.7
},
"luminance": 0.04738
}Semantic roles & 50–950 ramp
primary
#2C338A
secondary
#B4AD5E
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F