#303C97#303C97
#303C97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.148 H 272.2°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #303C97 |
|---|---|
| RGB | rgb(48, 60, 151) |
| HSL | hsl(233, 52%, 39%) |
| HSV | hsv(233, 68%, 59%) |
| CMYK | cmyk(68.2%, 60.3%, 0%, 40.8%) |
| CIE-LAB | lab(29.65, 26.12, -51.45) |
| CIE-LCH | lch(29.65, 57.70, 296.92°) |
| OKLab | oklab(40.38% 0.0057 -0.1482) |
| OKLCH | oklch(40.38% 0.148 272.2) |
| XYZ | xyz(8.4188, 6.0937, 30.0047) |
| Luminance | 0.0609 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.36
Blueberry
#464196
ΔE00 3.63
Darkslateblue
#483D8B
ΔE00 4.90
Cobalt
#0047AB
ΔE00 5.97
Cobalt (survey)
#1E488F
ΔE00 6.27
Ocean Blue
#4F42B5
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#303C97 #978B30
analogous
#307097 #303C97 #583097
triadic
#303C97 #97303C #3C9730
tetradic
#303C97 #973070 #978B30 #309758
square
#303C97 #973070 #978B30 #309758
split-complementary
#303C97 #975830 #709730
monochromatic
#12173A #212A69 #303C97 #4151C3 #707BD2
Accessibility & contrast
On white
9.46
#303C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#303C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #303C97
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##303C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##303C97 | 1.00 | 9.46 | 2.22 | 9.46 |
| #FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #303c97; /* rgb */ color: rgb(48, 60, 151); /* oklch */ color: oklch(40.4% 0.148 272.2);
Tailwind
colors: {
custom: {
50: '#7571b6',
500: '#303c97',
950: '#000000',
},
}SCSS
$custom: #303c97; $custom-light: #7571b6; $custom-dark: #000000;
JSON
{
"hex": "#303c97",
"rgb": {
"r": 48,
"g": 60,
"b": 151
},
"hsl": {
"h": 233.01,
"s": 51.759,
"l": 39.02
},
"oklch": {
"l": 0.40377,
"c": 0.14832,
"h": 272.2
},
"luminance": 0.06094
}Semantic roles & 50–950 ramp
primary
#303C97
secondary
#B9B06A
accent
#CB4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80