#303E98#303E98
#303E98 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.147 H 271.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #303E98 |
|---|---|
| RGB | rgb(48, 62, 152) |
| HSL | hsl(232, 52%, 39%) |
| HSV | hsv(232, 68%, 60%) |
| CMYK | cmyk(68.4%, 59.2%, 0%, 40.4%) |
| CIE-LAB | lab(30.25, 25.16, -51.07) |
| CIE-LCH | lch(30.25, 56.93, 296.23°) |
| OKLab | oklab(40.85% 0.004 -0.1471) |
| OKLCH | oklch(40.85% 0.147 271.6) |
| XYZ | xyz(8.6071, 6.3398, 30.4698) |
| Luminance | 0.0634 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.54
Blueberry
#464196
ΔE00 3.64
Darkslateblue
#483D8B
ΔE00 5.12
Cobalt
#0047AB
ΔE00 5.44
Cobalt (survey)
#1E488F
ΔE00 5.73
Ocean Blue
#4F42B5
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#303E98 #988A30
analogous
#307298 #303E98 #563098
triadic
#303E98 #98303E #3E9830
tetradic
#303E98 #983072 #988A30 #309856
square
#303E98 #983072 #988A30 #309856
split-complementary
#303E98 #985630 #729830
monochromatic
#13183B #212B69 #303E98 #4253C3 #707ED2
Accessibility & contrast
On white
9.26
#303E98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#303E98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #303E98
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##303E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##303E98 | 1.00 | 9.26 | 2.27 | 9.26 |
| #FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #303e98; /* rgb */ color: rgb(48, 62, 152); /* oklch */ color: oklch(40.9% 0.147 271.6);
Tailwind
colors: {
custom: {
50: '#7573b7',
500: '#303e98',
950: '#000000',
},
}SCSS
$custom: #303e98; $custom-light: #7573b7; $custom-dark: #000000;
JSON
{
"hex": "#303e98",
"rgb": {
"r": 48,
"g": 62,
"b": 152
},
"hsl": {
"h": 231.923,
"s": 52,
"l": 39.216
},
"oklch": {
"l": 0.40854,
"c": 0.14713,
"h": 271.6
},
"luminance": 0.06341
}Semantic roles & 50–950 ramp
primary
#303E98
secondary
#BAAF6A
accent
#C84CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80