#333C98#333C98
#333C98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.149 H 273.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #333C98 |
|---|---|
| RGB | rgb(51, 60, 152) |
| HSL | hsl(235, 50%, 40%) |
| HSV | hsv(235, 66%, 60%) |
| CMYK | cmyk(66.4%, 60.5%, 0%, 40.4%) |
| CIE-LAB | lab(29.92, 26.96, -51.61) |
| CIE-LCH | lch(29.92, 58.23, 297.58°) |
| OKLab | oklab(40.65% 0.0091 -0.1486) |
| OKLCH | oklch(40.65% 0.149 273.5) |
| XYZ | xyz(8.6467, 6.2018, 30.4411) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.25
Sapphire (survey)
#2138AB
ΔE00 3.35
Darkslateblue
#483D8B
ΔE00 4.57
Ocean Blue
#4F42B5
ΔE00 6.10
Cobalt
#0047AB
ΔE00 6.26
Blue Blue
#2242C7
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#333C98 #988F33
analogous
#336F98 #333C98 #5C3398
triadic
#333C98 #98333C #3C9833
tetradic
#333C98 #98336F #988F33 #33985C
square
#333C98 #98336F #988F33 #33985C
split-complementary
#333C98 #985C33 #6F9833
monochromatic
#14183C #242A6A #333C98 #4752C1 #757DD1
Accessibility & contrast
On white
9.37
#333C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#333C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #333C98
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##333C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##333C98 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #333c98; /* rgb */ color: rgb(51, 60, 152); /* oklch */ color: oklch(40.7% 0.149 273.5);
Tailwind
colors: {
custom: {
50: '#7771b7',
500: '#333c98',
950: '#000000',
},
}SCSS
$custom: #333c98; $custom-light: #7771b7; $custom-dark: #000000;
JSON
{
"hex": "#333c98",
"rgb": {
"r": 51,
"g": 60,
"b": 152
},
"hsl": {
"h": 234.653,
"s": 49.754,
"l": 39.804
},
"oklch": {
"l": 0.40651,
"c": 0.1489,
"h": 273.5
},
"luminance": 0.06203
}Semantic roles & 50–950 ramp
primary
#333C98
secondary
#B9B26E
accent
#CD4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80