#2D238C#2D238C
#2D238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.164 H 277.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2D238C |
|---|---|
| RGB | rgb(45, 35, 140) |
| HSL | hsl(246, 60%, 34%) |
| HSV | hsv(246, 75%, 55%) |
| CMYK | cmyk(67.9%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(22.49, 37.68, -56.39) |
| CIE-LCH | lch(22.49, 67.82, 303.75°) |
| OKLab | oklab(34.81% 0.0223 -0.1629) |
| OKLCH | oklch(34.81% 0.164 277.8) |
| XYZ | xyz(6.4153, 3.6529, 25.1729) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.57
Midnight Blue
#191970
ΔE00 5.07
Cobalt Blue
#030AA7
ΔE00 5.80
Indigo Blue
#3A18B1
ΔE00 5.84
Indigo (survey)
#380282
ΔE00 6.03
Royal Blue (survey)
#0504AA
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D238C #828C23
analogous
#234E8C #2D238C #62238C
triadic
#2D238C #8C2D23 #238C2D
tetradic
#2D238C #8C234E #828C23 #238C62
square
#2D238C #8C234E #828C23 #238C62
split-complementary
#2D238C #8C6223 #4E8C23
monochromatic
#0E0B2A #1D175B #2D238C #3D2FBD #6155D4
Accessibility & contrast
On white
12.13
#2D238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2D238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D238C
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D238C | 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)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2d238c; /* rgb */ color: rgb(45, 35, 140); /* oklch */ color: oklch(34.8% 0.164 277.8);
Tailwind
colors: {
custom: {
50: '#7460af',
500: '#2d238c',
950: '#000000',
},
}SCSS
$custom: #2d238c; $custom-light: #7460af; $custom-dark: #000000;
JSON
{
"hex": "#2d238c",
"rgb": {
"r": 45,
"g": 35,
"b": 140
},
"hsl": {
"h": 245.714,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.34809,
"c": 0.16439,
"h": 277.8
},
"luminance": 0.03653
}Semantic roles & 50–950 ramp
primary
#2D238C
secondary
#AFB852
accent
#E345D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F