#303E97#303E97
#303E97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.146 H 271.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #303E97 |
|---|---|
| RGB | rgb(48, 62, 151) |
| HSL | hsl(232, 52%, 39%) |
| HSV | hsv(232, 68%, 59%) |
| CMYK | cmyk(68.2%, 58.9%, 0%, 40.8%) |
| CIE-LAB | lab(30.17, 24.79, -50.59) |
| CIE-LCH | lch(30.17, 56.34, 296.11°) |
| OKLab | oklab(40.77% 0.004 -0.1457) |
| OKLCH | oklch(40.77% 0.146 271.6) |
| XYZ | xyz(8.5256, 6.3072, 30.0403) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.64
Sapphire (survey)
#2138AB
ΔE00 3.67
Darkslateblue
#483D8B
ΔE00 5.07
Cobalt
#0047AB
ΔE00 5.49
Cobalt (survey)
#1E488F
ΔE00 5.67
Ocean Blue
#4F42B5
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#303E97 #978930
analogous
#307297 #303E97 #563097
triadic
#303E97 #97303E #3E9730
tetradic
#303E97 #973072 #978930 #309756
square
#303E97 #973072 #978930 #309756
split-complementary
#303E97 #975630 #729730
monochromatic
#12183A #212B69 #303E97 #4153C3 #707DD2
Accessibility & contrast
On white
9.29
#303E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#303E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #303E97
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##303E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##303E97 | 1.00 | 9.29 | 2.26 | 9.29 |
| #FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #303e97; /* rgb */ color: rgb(48, 62, 151); /* oklch */ color: oklch(40.8% 0.146 271.6);
Tailwind
colors: {
custom: {
50: '#7573b6',
500: '#303e97',
950: '#000000',
},
}SCSS
$custom: #303e97; $custom-light: #7573b6; $custom-dark: #000000;
JSON
{
"hex": "#303e97",
"rgb": {
"r": 48,
"g": 62,
"b": 151
},
"hsl": {
"h": 231.845,
"s": 51.759,
"l": 39.02
},
"oklch": {
"l": 0.40769,
"c": 0.14572,
"h": 271.6
},
"luminance": 0.06308
}Semantic roles & 50–950 ramp
primary
#303E97
secondary
#B9AE6A
accent
#C84DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80