#2C308B#2C308B
#2C308B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.148 H 274.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2C308B |
|---|---|
| RGB | rgb(44, 48, 139) |
| HSL | hsl(237, 52%, 36%) |
| HSV | hsv(237, 68%, 55%) |
| CMYK | cmyk(68.3%, 65.5%, 0%, 45.5%) |
| CIE-LAB | lab(25.30, 29.09, -51.16) |
| CIE-LCH | lch(25.30, 58.85, 299.62°) |
| OKLab | oklab(36.79% 0.0116 -0.1476) |
| OKLCH | oklch(36.79% 0.148 274.5) |
| XYZ | xyz(6.7543, 4.5129, 24.9362) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.08
Darkslateblue
#483D8B
ΔE00 5.46
Blueberry
#464196
ΔE00 5.70
Royal
#0C1793
ΔE00 6.62
Midnight Blue
#191970
ΔE00 6.92
Indigo Blue
#3A18B1
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C308B #8B872C
analogous
#2C5F8B #2C308B #572C8B
triadic
#2C308B #8B2C30 #308B2C
tetradic
#2C308B #8B2C5F #8B872C #2C8B57
square
#2C308B #8B2C5F #8B872C #2C8B57
split-complementary
#2C308B #8B572C #5F8B2C
monochromatic
#0F102E #1D205D #2C308B #3B40B9 #6468CE
Accessibility & contrast
On white
11.04
#2C308B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2C308B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C308B
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C308B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C308B | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2c308b; /* rgb */ color: rgb(44, 48, 139); /* oklch */ color: oklch(36.8% 0.148 274.5);
Tailwind
colors: {
custom: {
50: '#7268ae',
500: '#2c308b',
950: '#000000',
},
}SCSS
$custom: #2c308b; $custom-light: #7268ae; $custom-dark: #000000;
JSON
{
"hex": "#2c308b",
"rgb": {
"r": 44,
"g": 48,
"b": 139
},
"hsl": {
"h": 237.474,
"s": 51.913,
"l": 35.882
},
"oklch": {
"l": 0.36786,
"c": 0.14804,
"h": 274.5
},
"luminance": 0.04513
}Semantic roles & 50–950 ramp
primary
#2C308B
secondary
#B4B15F
accent
#D54CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F