#2A338B#2A338B
#2A338B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.145 H 272.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2A338B |
|---|---|
| RGB | rgb(42, 51, 139) |
| HSL | hsl(234, 54%, 35%) |
| HSV | hsv(234, 70%, 55%) |
| CMYK | cmyk(69.8%, 63.3%, 0%, 45.5%) |
| CIE-LAB | lab(25.93, 26.80, -50.13) |
| CIE-LCH | lch(25.93, 56.85, 298.13°) |
| OKLab | oklab(37.22% 0.0068 -0.1446) |
| OKLCH | oklch(37.22% 0.145 272.7) |
| XYZ | xyz(6.7973, 4.7233, 24.9746) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.77
Blueberry
#464196
ΔE00 5.34
Darkslateblue
#483D8B
ΔE00 5.35
Royal
#0C1793
ΔE00 7.51
Midnight Blue
#191970
ΔE00 7.68
Cobalt (survey)
#1E488F
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A338B #8B822A
analogous
#2A638B #2A338B #512A8B
triadic
#2A338B #8B2A33 #338B2A
tetradic
#2A338B #8B2A63 #8B822A #2A8B51
square
#2A338B #8B2A63 #8B822A #2A8B51
split-complementary
#2A338B #8B512A #638B2A
monochromatic
#0E112D #1C225C #2A338B #3844BA #606BCF
Accessibility & contrast
On white
10.80
#2A338B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2A338B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A338B
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A338B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A338B | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a338b; /* rgb */ color: rgb(42, 51, 139); /* oklch */ color: oklch(37.2% 0.145 272.7);
Tailwind
colors: {
custom: {
50: '#716aae',
500: '#2a338b',
950: '#000000',
},
}SCSS
$custom: #2a338b; $custom-light: #716aae; $custom-dark: #000000;
JSON
{
"hex": "#2a338b",
"rgb": {
"r": 42,
"g": 51,
"b": 139
},
"hsl": {
"h": 234.433,
"s": 53.591,
"l": 35.49
},
"oklch": {
"l": 0.37217,
"c": 0.14475,
"h": 272.7
},
"luminance": 0.04724
}Semantic roles & 50–950 ramp
primary
#2A338B
secondary
#B5AD5C
accent
#CF4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F