#2E338D#2E338D
#2E338D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.146 H 274.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2E338D |
|---|---|
| RGB | rgb(46, 51, 141) |
| HSL | hsl(237, 51%, 37%) |
| HSV | hsv(237, 67%, 55%) |
| CMYK | cmyk(67.4%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(26.36, 28.14, -50.65) |
| CIE-LCH | lch(26.36, 57.94, 299.05°) |
| OKLab | oklab(37.66% 0.0114 -0.146) |
| OKLCH | oklch(37.66% 0.146 274.5) |
| XYZ | xyz(7.1167, 4.8710, 25.7593) |
| Luminance | 0.0487 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Darkslateblue
#483D8B
ΔE00 4.94
Blueberry
#464196
ΔE00 4.95
Royal
#0C1793
ΔE00 7.38
Midnight Blue
#191970
ΔE00 7.77
Ocean Blue
#4F42B5
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E338D #8D882E
analogous
#2E638D #2E338D #592E8D
triadic
#2E338D #8D2E33 #338D2E
tetradic
#2E338D #8D2E63 #8D882E #2E8D59
square
#2E338D #8D2E63 #8D882E #2E8D59
split-complementary
#2E338D #8D592E #638D2E
monochromatic
#101231 #1F225F #2E338D #3D44BB #686DCE
Accessibility & contrast
On white
10.64
#2E338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2E338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E338D
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E338D | 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)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2e338d; /* rgb */ color: rgb(46, 51, 141); /* oklch */ color: oklch(37.7% 0.146 274.5);
Tailwind
colors: {
custom: {
50: '#736aaf',
500: '#2e338d',
950: '#000000',
},
}SCSS
$custom: #2e338d; $custom-light: #736aaf; $custom-dark: #000000;
JSON
{
"hex": "#2e338d",
"rgb": {
"r": 46,
"g": 51,
"b": 141
},
"hsl": {
"h": 236.842,
"s": 50.802,
"l": 36.667
},
"oklch": {
"l": 0.37657,
"c": 0.14646,
"h": 274.5
},
"luminance": 0.04872
}Semantic roles & 50–950 ramp
primary
#2E338D
secondary
#B5B062
accent
#D34EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F