#304BAC#304BAC
#304BAC is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.158 H 267.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).
Color values
| HEX | #304BAC |
|---|---|
| RGB | rgb(48, 75, 172) |
| HSL | hsl(227, 56%, 43%) |
| HSV | hsv(227, 72%, 67%) |
| CMYK | cmyk(72.1%, 56.4%, 0%, 32.5%) |
| CIE-LAB | lab(35.28, 23.95, -54.95) |
| CIE-LCH | lch(35.28, 59.94, 293.55°) |
| OKLab | oklab(45.1% -0.0062 -0.1583) |
| OKLCH | oklch(45.1% 0.158 267.7) |
| XYZ | xyz(11.1788, 8.6379, 40.0999) |
| Luminance | 0.0864 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.20
Sapphire
#0F52BA
ΔE00 4.01
Blue Blue
#2242C7
ΔE00 4.69
Cobalt (survey)
#1E488F
ΔE00 5.07
Sapphire (survey)
#2138AB
ΔE00 5.80
Blueberry
#464196
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BAC #AC9130
analogous
#3089AC #304BAC #5330AC
triadic
#304BAC #AC304B #4BAC30
tetradic
#304BAC #AC3089 #AC9130 #30AC53
square
#304BAC #AC3089 #AC9130 #30AC53
split-complementary
#304BAC #AC5330 #89AC30
monochromatic
#15214C #23367C #304BAC #4C68CD #7C91DA
Accessibility & contrast
On white
7.70
#304BAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#304BAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BAC
7.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BAC | 1.00 | 7.70 | 2.73 | 7.70 |
| #FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #304bac; /* rgb */ color: rgb(48, 75, 172); /* oklch */ color: oklch(45.1% 0.158 267.7);
Tailwind
colors: {
custom: {
50: '#797cc5',
500: '#304bac',
950: '#000000',
},
}SCSS
$custom: #304bac; $custom-light: #797cc5; $custom-dark: #000000;
JSON
{
"hex": "#304bac",
"rgb": {
"r": 48,
"g": 75,
"b": 172
},
"hsl": {
"h": 226.935,
"s": 56.364,
"l": 43.137
},
"oklch": {
"l": 0.451,
"c": 0.15843,
"h": 267.7
},
"luminance": 0.08639
}Semantic roles & 50–950 ramp
primary
#304BAC
secondary
#C3B275
accent
#BF48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82