#333A8F#333A8F
#333A8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.139 H 274.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #333A8F |
|---|---|
| RGB | rgb(51, 58, 143) |
| HSL | hsl(235, 47%, 38%) |
| HSV | hsv(235, 64%, 56%) |
| CMYK | cmyk(64.3%, 59.4%, 0%, 43.9%) |
| CIE-LAB | lab(28.68, 25.04, -48.11) |
| CIE-LCH | lch(28.68, 54.24, 297.49°) |
| OKLab | oklab(39.51% 0.011 -0.1383) |
| OKLCH | oklch(39.51% 0.139 274.6) |
| XYZ | xyz(7.8346, 5.7124, 26.6710) |
| Luminance | 0.0571 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.45
Darkslateblue
#483D8B
ΔE00 4.02
Sapphire (survey)
#2138AB
ΔE00 4.49
Cobalt (survey)
#1E488F
ΔE00 6.93
Ocean Blue
#4F42B5
ΔE00 7.21
Cobalt
#0047AB
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#333A8F #8F8833
analogous
#33688F #333A8F #5A338F
triadic
#333A8F #8F333A #3A8F33
tetradic
#333A8F #8F3368 #8F8833 #338F5A
square
#333A8F #8F3368 #8F8833 #338F5A
split-complementary
#333A8F #8F5A33 #688F33
monochromatic
#131535 #232862 #333A8F #434CBC #7077CC
Accessibility & contrast
On white
9.80
#333A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#333A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #333A8F
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##333A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##333A8F | 1.00 | 9.80 | 2.14 | 9.80 |
| #FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #333a8f; /* rgb */ color: rgb(51, 58, 143); /* oklch */ color: oklch(39.5% 0.139 274.6);
Tailwind
colors: {
custom: {
50: '#7570b0',
500: '#333a8f',
950: '#000000',
},
}SCSS
$custom: #333a8f; $custom-light: #7570b0; $custom-dark: #000000;
JSON
{
"hex": "#333a8f",
"rgb": {
"r": 51,
"g": 58,
"b": 143
},
"hsl": {
"h": 235.435,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.39505,
"c": 0.13879,
"h": 274.6
},
"luminance": 0.05713
}Semantic roles & 50–950 ramp
primary
#333A8F
secondary
#B4AE6A
accent
#CD51D7
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#090711
muted
#7B7A80