#304DC9#304DC9
#304DC9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.195 H 267.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).
Color values
| HEX | #304DC9 |
|---|---|
| RGB | rgb(48, 77, 201) |
| HSL | hsl(229, 61%, 49%) |
| HSV | hsv(229, 76%, 79%) |
| CMYK | cmyk(76.1%, 61.7%, 0%, 21.2%) |
| CIE-LAB | lab(38.11, 33.38, -67.37) |
| CIE-LCH | lch(38.11, 75.18, 296.36°) |
| OKLab | oklab(47.94% -0.0072 -0.1947) |
| OKLCH | oklch(47.94% 0.195 267.9) |
| XYZ | xyz(14.4118, 10.1516, 56.4469) |
| Luminance | 0.1015 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.27
Blue (survey)
#0343DF
ΔE00 3.77
Sapphire
#0F52BA
ΔE00 4.65
Warm Blue
#4B57DB
ΔE00 4.90
Cobalt
#0047AB
ΔE00 5.81
Ocean Blue
#4F42B5
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304DC9 #C9AC30
analogous
#309AC9 #304DC9 #5F30C9
triadic
#304DC9 #C9304D #4DC930
tetradic
#304DC9 #C9309A #C9AC30 #30C95F
square
#304DC9 #C9309A #C9AC30 #30C95F
split-complementary
#304DC9 #C95F30 #9AC930
monochromatic
#182766 #243A98 #304DC9 #5E75D8 #8F9FE4
Accessibility & contrast
On white
6.93
#304DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#304DC9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #304DC9
6.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304DC9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304DC9 | 1.00 | 6.93 | 3.03 | 6.93 |
| #FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006D84
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #304dc9; /* rgb */ color: rgb(48, 77, 201); /* oklch */ color: oklch(47.9% 0.195 267.9);
Tailwind
colors: {
custom: {
50: '#7f7eda',
500: '#304dc9',
950: '#000000',
},
}SCSS
$custom: #304dc9; $custom-light: #7f7eda; $custom-dark: #000000;
JSON
{
"hex": "#304dc9",
"rgb": {
"r": 48,
"g": 77,
"b": 201
},
"hsl": {
"h": 228.627,
"s": 61.446,
"l": 48.824
},
"oklch": {
"l": 0.47938,
"c": 0.19488,
"h": 267.9
},
"luminance": 0.10153
}Semantic roles & 50–950 ramp
primary
#304DC9
secondary
#CFC186
accent
#C643E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83