#2B338F#2B338F
#2B338F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.150 H 273.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2B338F |
|---|---|
| RGB | rgb(43, 51, 143) |
| HSL | hsl(235, 54%, 36%) |
| HSV | hsv(235, 70%, 56%) |
| CMYK | cmyk(69.9%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(26.34, 28.42, -51.93) |
| CIE-LCH | lch(26.34, 59.20, 298.69°) |
| OKLab | oklab(37.64% 0.0078 -0.1499) |
| OKLCH | oklch(37.64% 0.15 273) |
| XYZ | xyz(7.1364, 4.8637, 26.5440) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.22
Blueberry
#464196
ΔE00 5.16
Darkslateblue
#483D8B
ΔE00 5.33
Royal
#0C1793
ΔE00 7.28
Midnight Blue
#191970
ΔE00 7.89
Ocean Blue
#4F42B5
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B338F #8F872B
analogous
#2B658F #2B338F #552B8F
triadic
#2B338F #8F2B33 #338F2B
tetradic
#2B338F #8F2B65 #8F872B #2B8F55
square
#2B338F #8F2B65 #8F872B #2B8F55
split-complementary
#2B338F #8F552B #658F2B
monochromatic
#0F1131 #1D2260 #2B338F #3944BE #646DD0
Accessibility & contrast
On white
10.64
#2B338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2B338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B338F
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B338F | 1.00 | 10.64 | 1.97 | 10.64 |
| #FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2b338f; /* rgb */ color: rgb(43, 51, 143); /* oklch */ color: oklch(37.6% 0.150 273.0);
Tailwind
colors: {
custom: {
50: '#726ab1',
500: '#2b338f',
950: '#000000',
},
}SCSS
$custom: #2b338f; $custom-light: #726ab1; $custom-dark: #000000;
JSON
{
"hex": "#2b338f",
"rgb": {
"r": 43,
"g": 51,
"b": 143
},
"hsl": {
"h": 235.2,
"s": 53.763,
"l": 36.471
},
"oklch": {
"l": 0.37644,
"c": 0.15006,
"h": 273
},
"luminance": 0.04864
}Semantic roles & 50–950 ramp
primary
#2B338F
secondary
#B7B05F
accent
#D14BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80