#2B338C#2B338C
#2B338C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.146 H 273.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2B338C |
|---|---|
| RGB | rgb(43, 51, 140) |
| HSL | hsl(235, 53%, 36%) |
| HSV | hsv(235, 69%, 55%) |
| CMYK | cmyk(69.3%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(26.08, 27.32, -50.50) |
| CIE-LCH | lch(26.08, 57.42, 298.41°) |
| OKLab | oklab(37.37% 0.0079 -0.1457) |
| OKLCH | oklch(37.37% 0.146 273.1) |
| XYZ | xyz(6.9121, 4.7741, 25.3631) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.65
Blueberry
#464196
ΔE00 5.23
Darkslateblue
#483D8B
ΔE00 5.25
Royal
#0C1793
ΔE00 7.44
Midnight Blue
#191970
ΔE00 7.72
Cobalt (survey)
#1E488F
ΔE00 8.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B338C #8C842B
analogous
#2B638C #2B338C #532B8C
triadic
#2B338C #8C2B33 #338C2B
tetradic
#2B338C #8C2B63 #8C842B #2B8C53
square
#2B338C #8C2B63 #8C842B #2B8C53
split-complementary
#2B338C #8C532B #638C2B
monochromatic
#0E112E #1D225D #2B338C #3944BB #626BCF
Accessibility & contrast
On white
10.74
#2B338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2B338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B338C
10.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B338C | 1.00 | 10.74 | 1.96 | 10.74 |
| #FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2b338c; /* rgb */ color: rgb(43, 51, 140); /* oklch */ color: oklch(37.4% 0.146 273.1);
Tailwind
colors: {
custom: {
50: '#716aae',
500: '#2b338c',
950: '#000000',
},
}SCSS
$custom: #2b338c; $custom-light: #716aae; $custom-dark: #000000;
JSON
{
"hex": "#2b338c",
"rgb": {
"r": 43,
"g": 51,
"b": 140
},
"hsl": {
"h": 235.052,
"s": 53.005,
"l": 35.882
},
"oklch": {
"l": 0.3737,
"c": 0.14587,
"h": 273.1
},
"luminance": 0.04775
}Semantic roles & 50–950 ramp
primary
#2B338C
secondary
#B5AE5E
accent
#D04BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F