#2C297F#2C297F
#2C297F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.140 H 277.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2C297F |
|---|---|
| RGB | rgb(44, 41, 127) |
| HSL | hsl(242, 51%, 33%) |
| HSV | hsv(242, 68%, 50%) |
| CMYK | cmyk(65.4%, 67.7%, 0%, 50.2%) |
| CIE-LAB | lab(22.49, 29.36, -48.23) |
| CIE-LCH | lch(22.49, 56.47, 301.33°) |
| OKLab | oklab(34.4% 0.0186 -0.139) |
| OKLCH | oklch(34.4% 0.14 277.6) |
| XYZ | xyz(5.6612, 3.6532, 20.4814) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.64
Royal
#0C1793
ΔE00 5.89
Darkslateblue
#483D8B
ΔE00 6.57
Sapphire (survey)
#2138AB
ΔE00 7.52
Blueberry
#464196
ΔE00 7.55
Indigo (survey)
#380282
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C297F #7C7F29
analogous
#29517F #2C297F #57297F
triadic
#2C297F #7F2C29 #297F2C
tetradic
#2C297F #7F2951 #7C7F29 #297F57
square
#2C297F #7F2951 #7C7F29 #297F57
split-complementary
#2C297F #7F5729 #517F29
monochromatic
#0C0B22 #1C1A51 #2C297F #3C38AD #5D59C9
Accessibility & contrast
On white
12.13
#2C297F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2C297F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C297F
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C297F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C297F | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c297f; /* rgb */ color: rgb(44, 41, 127); /* oklch */ color: oklch(34.4% 0.140 277.6);
Tailwind
colors: {
custom: {
50: '#7063a5',
500: '#2c297f',
950: '#000000',
},
}SCSS
$custom: #2c297f; $custom-light: #7063a5; $custom-dark: #000000;
JSON
{
"hex": "#2c297f",
"rgb": {
"r": 44,
"g": 41,
"b": 127
},
"hsl": {
"h": 242.093,
"s": 51.19,
"l": 32.941
},
"oklch": {
"l": 0.34403,
"c": 0.14026,
"h": 277.6
},
"luminance": 0.03654
}Semantic roles & 50–950 ramp
primary
#2C297F
secondary
#ACAF55
accent
#DB4DD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F