#2B238C#2B238C
#2B238C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.165 H 276.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2B238C |
|---|---|
| RGB | rgb(43, 35, 140) |
| HSL | hsl(245, 60%, 34%) |
| HSV | hsv(245, 75%, 55%) |
| CMYK | cmyk(69.3%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(22.33, 37.44, -56.65) |
| CIE-LCH | lch(22.33, 67.91, 303.46°) |
| OKLab | oklab(34.66% 0.0196 -0.1637) |
| OKLCH | oklch(34.66% 0.165 276.8) |
| XYZ | xyz(6.3294, 3.6085, 25.1688) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.44
Midnight Blue
#191970
ΔE00 4.98
Cobalt Blue
#030AA7
ΔE00 5.75
Indigo Blue
#3A18B1
ΔE00 5.93
Indigo (survey)
#380282
ΔE00 6.15
Royal Blue (survey)
#0504AA
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B238C #848C23
analogous
#23508C #2B238C #60238C
triadic
#2B238C #8C2B23 #238C2B
tetradic
#2B238C #8C2350 #848C23 #238C60
square
#2B238C #8C2350 #848C23 #238C60
split-complementary
#2B238C #8C6023 #508C23
monochromatic
#0D0B2A #1C175B #2B238C #3A2FBD #5F55D4
Accessibility & contrast
On white
12.20
#2B238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2B238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B238C
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B238C | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2b238c; /* rgb */ color: rgb(43, 35, 140); /* oklch */ color: oklch(34.7% 0.165 276.8);
Tailwind
colors: {
custom: {
50: '#7360af',
500: '#2b238c',
950: '#000000',
},
}SCSS
$custom: #2b238c; $custom-light: #7360af; $custom-dark: #000000;
JSON
{
"hex": "#2b238c",
"rgb": {
"r": 43,
"g": 35,
"b": 140
},
"hsl": {
"h": 244.571,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.34658,
"c": 0.16485,
"h": 276.8
},
"luminance": 0.03609
}Semantic roles & 50–950 ramp
primary
#2B238C
secondary
#B1B852
accent
#E345D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F