#2B338E#2B338E
#2B338E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.149 H 273.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2B338E |
|---|---|
| RGB | rgb(43, 51, 142) |
| HSL | hsl(235, 54%, 36%) |
| HSV | hsv(235, 70%, 56%) |
| CMYK | cmyk(69.7%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(26.26, 28.05, -51.46) |
| CIE-LCH | lch(26.26, 58.61, 298.60°) |
| OKLab | oklab(37.55% 0.0078 -0.1485) |
| OKLCH | oklch(37.55% 0.149 273) |
| XYZ | xyz(7.0609, 4.8336, 26.1468) |
| Luminance | 0.0483 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.36
Blueberry
#464196
ΔE00 5.18
Darkslateblue
#483D8B
ΔE00 5.30
Royal
#0C1793
ΔE00 7.33
Midnight Blue
#191970
ΔE00 7.83
Ocean Blue
#4F42B5
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B338E #8E862B
analogous
#2B658E #2B338E #552B8E
triadic
#2B338E #8E2B33 #338E2B
tetradic
#2B338E #8E2B65 #8E862B #2B8E55
square
#2B338E #8E2B65 #8E862B #2B8E55
split-complementary
#2B338E #8E552B #658E2B
monochromatic
#0F1130 #1D225F #2B338E #3944BD #636CD0
Accessibility & contrast
On white
10.68
#2B338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2B338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B338E
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B338E | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2b338e; /* rgb */ color: rgb(43, 51, 142); /* oklch */ color: oklch(37.6% 0.149 273.0);
Tailwind
colors: {
custom: {
50: '#726ab0',
500: '#2b338e',
950: '#000000',
},
}SCSS
$custom: #2b338e; $custom-light: #726ab0; $custom-dark: #000000;
JSON
{
"hex": "#2b338e",
"rgb": {
"r": 43,
"g": 51,
"b": 142
},
"hsl": {
"h": 235.152,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.37553,
"c": 0.14866,
"h": 273
},
"luminance": 0.04834
}Semantic roles & 50–950 ramp
primary
#2B338E
secondary
#B6AF5F
accent
#D14BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80