#2B338B#2B338B
#2B338B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.144 H 273.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2B338B |
|---|---|
| RGB | rgb(43, 51, 139) |
| HSL | hsl(235, 53%, 36%) |
| HSV | hsv(235, 69%, 55%) |
| CMYK | cmyk(69.1%, 63.3%, 0%, 45.5%) |
| CIE-LAB | lab(25.99, 26.95, -50.03) |
| CIE-LCH | lch(25.99, 56.82, 298.31°) |
| OKLab | oklab(37.28% 0.0079 -0.1443) |
| OKLCH | oklch(37.28% 0.144 273.1) |
| XYZ | xyz(6.8387, 4.7447, 24.9765) |
| Luminance | 0.0474 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.79
Darkslateblue
#483D8B
ΔE00 5.24
Blueberry
#464196
ΔE00 5.26
Royal
#0C1793
ΔE00 7.51
Midnight Blue
#191970
ΔE00 7.67
Cobalt (survey)
#1E488F
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B338B #8B832B
analogous
#2B638B #2B338B #532B8B
triadic
#2B338B #8B2B33 #338B2B
tetradic
#2B338B #8B2B63 #8B832B #2B8B53
square
#2B338B #8B2B63 #8B832B #2B8B53
split-complementary
#2B338B #8B532B #638B2B
monochromatic
#0E112E #1D225C #2B338B #3944BA #626BCE
Accessibility & contrast
On white
10.77
#2B338B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2B338B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B338B
10.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B338B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B338B | 1.00 | 10.77 | 1.95 | 10.77 |
| #FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2b338b; /* rgb */ color: rgb(43, 51, 139); /* oklch */ color: oklch(37.3% 0.144 273.1);
Tailwind
colors: {
custom: {
50: '#716aae',
500: '#2b338b',
950: '#000000',
},
}SCSS
$custom: #2b338b; $custom-light: #716aae; $custom-dark: #000000;
JSON
{
"hex": "#2b338b",
"rgb": {
"r": 43,
"g": 51,
"b": 139
},
"hsl": {
"h": 235,
"s": 52.747,
"l": 35.686
},
"oklch": {
"l": 0.3728,
"c": 0.14448,
"h": 273.1
},
"luminance": 0.04745
}Semantic roles & 50–950 ramp
primary
#2B338B
secondary
#B5AD5D
accent
#D04CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F