#2C237D#2C237D
#2C237D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.145 H 279.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C237D |
|---|---|
| RGB | rgb(44, 35, 125) |
| HSL | hsl(246, 56%, 31%) |
| HSV | hsv(246, 72%, 49%) |
| CMYK | cmyk(64.8%, 72%, 0%, 51%) |
| CIE-LAB | lab(20.90, 32.47, -49.58) |
| CIE-LCH | lch(20.90, 59.26, 303.22°) |
| OKLab | oklab(33.19% 0.0239 -0.143) |
| OKLCH | oklch(33.19% 0.145 279.5) |
| XYZ | xyz(5.3402, 3.2178, 19.7377) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.45
Royal
#0C1793
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 6.37
Dark Royal Blue
#02066F
ΔE00 6.95
Darkblue
#00008B
ΔE00 7.27
Navy
#000080
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C237D #747D23
analogous
#23477D #2C237D #59237D
triadic
#2C237D #7D2C23 #237D2C
tetradic
#2C237D #7D2347 #747D23 #237D59
square
#2C237D #7D2347 #747D23 #237D59
split-complementary
#2C237D #7D5923 #477D23
monochromatic
#0A081D #1B164D #2C237D #3D30AD #5A4DCD
Accessibility & contrast
On white
12.78
#2C237D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2C237D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C237D
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C237D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C237D | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c237d; /* rgb */ color: rgb(44, 35, 125); /* oklch */ color: oklch(33.2% 0.145 279.5);
Tailwind
colors: {
custom: {
50: '#705fa4',
500: '#2c237d',
950: '#000000',
},
}SCSS
$custom: #2c237d; $custom-light: #705fa4; $custom-dark: #000000;
JSON
{
"hex": "#2c237d",
"rgb": {
"r": 44,
"g": 35,
"b": 125
},
"hsl": {
"h": 246,
"s": 56.25,
"l": 31.373
},
"oklch": {
"l": 0.33194,
"c": 0.14495,
"h": 279.5
},
"luminance": 0.03218
}Semantic roles & 50–950 ramp
primary
#2C237D
secondary
#A6AF4C
accent
#E048D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F