#2B338A#2B338A
#2B338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.143 H 273.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2B338A |
|---|---|
| RGB | rgb(43, 51, 138) |
| HSL | hsl(235, 52%, 35%) |
| HSV | hsv(235, 69%, 54%) |
| CMYK | cmyk(68.8%, 63%, 0%, 45.9%) |
| CIE-LAB | lab(25.91, 26.58, -49.54) |
| CIE-LCH | lch(25.91, 56.22, 298.21°) |
| OKLab | oklab(37.19% 0.008 -0.1428) |
| OKLCH | oklch(37.19% 0.143 273.2) |
| XYZ | xyz(6.7660, 4.7156, 24.5935) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.94
Darkslateblue
#483D8B
ΔE00 5.22
Blueberry
#464196
ΔE00 5.29
Royal
#0C1793
ΔE00 7.57
Midnight Blue
#191970
ΔE00 7.62
Cobalt (survey)
#1E488F
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B338A #8A822B
analogous
#2B638A #2B338A #522B8A
triadic
#2B338A #8A2B33 #338A2B
tetradic
#2B338A #8A2B63 #8A822B #2B8A52
square
#2B338A #8A2B63 #8A822B #2B8A52
split-complementary
#2B338A #8A522B #638A2B
monochromatic
#0E112D #1C225B #2B338A #3A44B9 #616BCE
Accessibility & contrast
On white
10.81
#2B338A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2B338A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B338A
10.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B338A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B338A | 1.00 | 10.81 | 1.94 | 10.81 |
| #FFFFFF | 10.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2b338a; /* rgb */ color: rgb(43, 51, 138); /* oklch */ color: oklch(37.2% 0.143 273.2);
Tailwind
colors: {
custom: {
50: '#716aad',
500: '#2b338a',
950: '#000000',
},
}SCSS
$custom: #2b338a; $custom-light: #716aad; $custom-dark: #000000;
JSON
{
"hex": "#2b338a",
"rgb": {
"r": 43,
"g": 51,
"b": 138
},
"hsl": {
"h": 234.947,
"s": 52.486,
"l": 35.49
},
"oklch": {
"l": 0.3719,
"c": 0.14306,
"h": 273.2
},
"luminance": 0.04716
}Semantic roles & 50–950 ramp
primary
#2B338A
secondary
#B4AD5D
accent
#D04CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F