#2C308E#2C308E
#2C308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.152 H 274.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2C308E |
|---|---|
| RGB | rgb(44, 48, 142) |
| HSL | hsl(238, 53%, 36%) |
| HSV | hsv(238, 69%, 56%) |
| CMYK | cmyk(69%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(25.57, 30.17, -52.58) |
| CIE-LCH | lch(25.57, 60.62, 299.85°) |
| OKLab | oklab(37.07% 0.0114 -0.1517) |
| OKLCH | oklch(37.07% 0.152 274.3) |
| XYZ | xyz(6.9765, 4.6017, 26.1065) |
| Luminance | 0.0460 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.69
Darkslateblue
#483D8B
ΔE00 5.55
Blueberry
#464196
ΔE00 5.65
Royal
#0C1793
ΔE00 6.45
Midnight Blue
#191970
ΔE00 7.13
Indigo Blue
#3A18B1
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C308E #8E8A2C
analogous
#2C618E #2C308E #592C8E
triadic
#2C308E #8E2C30 #308E2C
tetradic
#2C308E #8E2C61 #8E8A2C #2C8E59
square
#2C308E #8E2C61 #8E8A2C #2C8E59
split-complementary
#2C308E #8E592C #618E2C
monochromatic
#0F1031 #1E205F #2C308E #3A40BD #6569CF
Accessibility & contrast
On white
10.94
#2C308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#2C308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C308E
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C308E | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2c308e; /* rgb */ color: rgb(44, 48, 142); /* oklch */ color: oklch(37.1% 0.152 274.3);
Tailwind
colors: {
custom: {
50: '#7368b0',
500: '#2c308e',
950: '#000000',
},
}SCSS
$custom: #2c308e; $custom-light: #7368b0; $custom-dark: #000000;
JSON
{
"hex": "#2c308e",
"rgb": {
"r": 44,
"g": 48,
"b": 142
},
"hsl": {
"h": 237.551,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.37067,
"c": 0.15217,
"h": 274.3
},
"luminance": 0.04602
}Semantic roles & 50–950 ramp
primary
#2C308E
secondary
#B6B260
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80