#304ABF#304ABF
#304ABF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.5% C 0.185 H 268.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #304ABF |
|---|---|
| RGB | rgb(48, 74, 191) |
| HSL | hsl(229, 60%, 47%) |
| HSV | hsv(229, 75%, 75%) |
| CMYK | cmyk(74.9%, 61.3%, 0%, 25.1%) |
| CIE-LAB | lab(36.53, 31.65, -64.13) |
| CIE-LCH | lch(36.53, 71.51, 296.27°) |
| OKLab | oklab(46.51% -0.0051 -0.1853) |
| OKLCH | oklch(46.51% 0.185 268.4) |
| XYZ | xyz(13.0684, 9.2861, 50.3838) |
| Luminance | 0.0929 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.58
Blue (survey)
#0343DF
ΔE00 4.28
Sapphire
#0F52BA
ΔE00 4.64
Cobalt
#0047AB
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.36
Sapphire (survey)
#2138AB
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304ABF #BFA530
analogous
#3092BF #304ABF #5E30BF
triadic
#304ABF #BF304A #4ABF30
tetradic
#304ABF #BF3092 #BFA530 #30BF5E
square
#304ABF #BF3092 #BFA530 #30BF5E
split-complementary
#304ABF #BF5E30 #92BF30
monochromatic
#17245D #24378E #304ABF #576ED5 #8898E1
Accessibility & contrast
On white
7.35
#304ABF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#304ABF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304ABF
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304ABF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304ABF | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00687D
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #304abf; /* rgb */ color: rgb(48, 74, 191); /* oklch */ color: oklch(46.5% 0.185 268.4);
Tailwind
colors: {
custom: {
50: '#7d7cd3',
500: '#304abf',
950: '#000000',
},
}SCSS
$custom: #304abf; $custom-light: #7d7cd3; $custom-dark: #000000;
JSON
{
"hex": "#304abf",
"rgb": {
"r": 48,
"g": 74,
"b": 191
},
"hsl": {
"h": 229.091,
"s": 59.833,
"l": 46.863
},
"oklch": {
"l": 0.46506,
"c": 0.18535,
"h": 268.4
},
"luminance": 0.09288
}Semantic roles & 50–950 ramp
primary
#304ABF
secondary
#CBBD80
accent
#C645E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83