#2C2F8B#2C2F8B
#2C2F8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.149 H 274.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2F8B |
|---|---|
| RGB | rgb(44, 47, 139) |
| HSL | hsl(238, 52%, 36%) |
| HSV | hsv(238, 68%, 55%) |
| CMYK | cmyk(68.3%, 66.2%, 0%, 45.5%) |
| CIE-LAB | lab(25.05, 29.74, -51.56) |
| CIE-LCH | lch(25.05, 59.53, 299.98°) |
| OKLab | oklab(36.6% 0.0124 -0.1488) |
| OKLCH | oklch(36.6% 0.149 274.8) |
| XYZ | xyz(6.7139, 4.4320, 24.9227) |
| Luminance | 0.0443 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.19
Darkslateblue
#483D8B
ΔE00 5.61
Blueberry
#464196
ΔE00 5.90
Royal
#0C1793
ΔE00 6.34
Midnight Blue
#191970
ΔE00 6.69
Indigo Blue
#3A18B1
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2F8B #8B882C
analogous
#2C5E8B #2C2F8B #582C8B
triadic
#2C2F8B #8B2C2F #2F8B2C
tetradic
#2C2F8B #8B2C5E #8B882C #2C8B58
square
#2C2F8B #8B2C5E #8B882C #2C8B58
split-complementary
#2C2F8B #8B582C #5E8B2C
monochromatic
#0F102E #1D1F5D #2C2F8B #3B3FB9 #6467CE
Accessibility & contrast
On white
11.13
#2C2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2C2F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2F8B
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2F8B | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2c2f8b; /* rgb */ color: rgb(44, 47, 139); /* oklch */ color: oklch(36.6% 0.149 274.8);
Tailwind
colors: {
custom: {
50: '#7268ae',
500: '#2c2f8b',
950: '#000000',
},
}SCSS
$custom: #2c2f8b; $custom-light: #7268ae; $custom-dark: #000000;
JSON
{
"hex": "#2c2f8b",
"rgb": {
"r": 44,
"g": 47,
"b": 139
},
"hsl": {
"h": 238.105,
"s": 51.913,
"l": 35.882
},
"oklch": {
"l": 0.36605,
"c": 0.14929,
"h": 274.8
},
"luminance": 0.04433
}Semantic roles & 50–950 ramp
primary
#2C2F8B
secondary
#B4B15F
accent
#D74CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F