#2C308C#2C308C
#2C308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.149 H 274.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2C308C |
|---|---|
| RGB | rgb(44, 48, 140) |
| HSL | hsl(238, 52%, 36%) |
| HSV | hsv(238, 69%, 55%) |
| CMYK | cmyk(68.6%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(25.39, 29.45, -51.63) |
| CIE-LCH | lch(25.39, 59.44, 299.70°) |
| OKLab | oklab(36.88% 0.0115 -0.149) |
| OKLCH | oklch(36.88% 0.149 274.4) |
| XYZ | xyz(6.8277, 4.5422, 25.3228) |
| Luminance | 0.0454 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.94
Darkslateblue
#483D8B
ΔE00 5.49
Blueberry
#464196
ΔE00 5.68
Royal
#0C1793
ΔE00 6.56
Midnight Blue
#191970
ΔE00 6.99
Indigo Blue
#3A18B1
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C308C #8C882C
analogous
#2C608C #2C308C #582C8C
triadic
#2C308C #8C2C30 #308C2C
tetradic
#2C308C #8C2C60 #8C882C #2C8C58
square
#2C308C #8C2C60 #8C882C #2C8C58
split-complementary
#2C308C #8C582C #608C2C
monochromatic
#0F102F #1D205D #2C308C #3B40BB #6469CE
Accessibility & contrast
On white
11.00
#2C308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2C308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C308C
11.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C308C | 1.00 | 11.00 | 1.91 | 11.00 |
| #FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2c308c; /* rgb */ color: rgb(44, 48, 140); /* oklch */ color: oklch(36.9% 0.149 274.4);
Tailwind
colors: {
custom: {
50: '#7268ae',
500: '#2c308c',
950: '#000000',
},
}SCSS
$custom: #2c308c; $custom-light: #7268ae; $custom-dark: #000000;
JSON
{
"hex": "#2c308c",
"rgb": {
"r": 44,
"g": 48,
"b": 140
},
"hsl": {
"h": 237.5,
"s": 52.174,
"l": 36.078
},
"oklch": {
"l": 0.3688,
"c": 0.14941,
"h": 274.4
},
"luminance": 0.04543
}Semantic roles & 50–950 ramp
primary
#2C308C
secondary
#B5B15F
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F