#2C338D#2C338D
#2C338D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.147 H 273.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2C338D |
|---|---|
| RGB | rgb(44, 51, 141) |
| HSL | hsl(236, 52%, 36%) |
| HSV | hsv(236, 69%, 55%) |
| CMYK | cmyk(68.8%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(26.23, 27.83, -50.88) |
| CIE-LCH | lch(26.23, 57.99, 298.68°) |
| OKLab | oklab(37.53% 0.009 -0.1467) |
| OKLCH | oklch(37.53% 0.147 273.5) |
| XYZ | xyz(7.0286, 4.8256, 25.7552) |
| Luminance | 0.0483 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.53
Blueberry
#464196
ΔE00 5.12
Darkslateblue
#483D8B
ΔE00 5.16
Royal
#0C1793
ΔE00 7.38
Midnight Blue
#191970
ΔE00 7.77
Ocean Blue
#4F42B5
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C338D #8D862C
analogous
#2C648D #2C338D #562C8D
triadic
#2C338D #8D2C33 #338D2C
tetradic
#2C338D #8D2C64 #8D862C #2C8D56
square
#2C338D #8D2C64 #8D862C #2C8D56
split-complementary
#2C338D #8D562C #648D2C
monochromatic
#0F1130 #1D225E #2C338D #3B44BC #656CCF
Accessibility & contrast
On white
10.69
#2C338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2C338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C338D
10.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C338D | 1.00 | 10.69 | 1.97 | 10.69 |
| #FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2c338d; /* rgb */ color: rgb(44, 51, 141); /* oklch */ color: oklch(37.5% 0.147 273.5);
Tailwind
colors: {
custom: {
50: '#726aaf',
500: '#2c338d',
950: '#000000',
},
}SCSS
$custom: #2c338d; $custom-light: #726aaf; $custom-dark: #000000;
JSON
{
"hex": "#2c338d",
"rgb": {
"r": 44,
"g": 51,
"b": 141
},
"hsl": {
"h": 235.67,
"s": 52.432,
"l": 36.275
},
"oklch": {
"l": 0.37525,
"c": 0.14701,
"h": 273.5
},
"luminance": 0.04826
}Semantic roles & 50–950 ramp
primary
#2C338D
secondary
#B5AF60
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F