#303C98#303C98
#303C98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.150 H 272.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #303C98 |
|---|---|
| RGB | rgb(48, 60, 152) |
| HSL | hsl(233, 52%, 39%) |
| HSV | hsv(233, 68%, 60%) |
| CMYK | cmyk(68.4%, 60.5%, 0%, 40.4%) |
| CIE-LAB | lab(29.73, 26.49, -51.92) |
| CIE-LCH | lch(29.73, 58.29, 297.03°) |
| OKLab | oklab(40.46% 0.0057 -0.1496) |
| OKLCH | oklch(40.46% 0.15 272.2) |
| XYZ | xyz(8.5004, 6.1263, 30.4342) |
| Luminance | 0.0613 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.22
Blueberry
#464196
ΔE00 3.64
Darkslateblue
#483D8B
ΔE00 4.96
Cobalt
#0047AB
ΔE00 5.93
Cobalt (survey)
#1E488F
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#303C98 #988C30
analogous
#307098 #303C98 #583098
triadic
#303C98 #98303C #3C9830
tetradic
#303C98 #983070 #988C30 #309858
square
#303C98 #983070 #988C30 #309858
split-complementary
#303C98 #985830 #709830
monochromatic
#13173B #212A69 #303C98 #4251C3 #707CD2
Accessibility & contrast
On white
9.44
#303C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#303C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #303C98
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##303C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##303C98 | 1.00 | 9.44 | 2.23 | 9.44 |
| #FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #303c98; /* rgb */ color: rgb(48, 60, 152); /* oklch */ color: oklch(40.5% 0.150 272.2);
Tailwind
colors: {
custom: {
50: '#7671b7',
500: '#303c98',
950: '#000000',
},
}SCSS
$custom: #303c98; $custom-light: #7671b7; $custom-dark: #000000;
JSON
{
"hex": "#303c98",
"rgb": {
"r": 48,
"g": 60,
"b": 152
},
"hsl": {
"h": 233.077,
"s": 52,
"l": 39.216
},
"oklch": {
"l": 0.40463,
"c": 0.14973,
"h": 272.2
},
"luminance": 0.06127
}Semantic roles & 50–950 ramp
primary
#303C98
secondary
#BAB06A
accent
#CB4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80