#304BB1#304BB1

#304BB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.165 H 267.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#304BB1
RGBrgb(48, 75, 177)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.9%, 57.6%, 0%, 30.6%)
CIE-LABlab(35.66, 25.82, -57.29)
CIE-LCHlch(35.66, 62.84, 294.26°)
OKLaboklab(45.51% -0.006 -0.1652)
OKLCHoklch(45.51% 0.165 267.9)
XYZxyz(11.6681, 8.8336, 42.6766)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB1 #B19630
analogous
#308CB1 #304BB1 #5630B1
triadic
#304BB1 #B1304B #4BB130
tetradic
#304BB1 #B1308C #B19630 #30B156
square
#304BB1 #B1308C #B19630 #30B156
split-complementary
#304BB1 #B15630 #8CB130
monochromatic
#162251 #233781 #304BB1 #4F6ACF #7F93DC

Accessibility & contrast

On white

7.59
#304BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#304BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB1
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB1#FFFFFF#000000##FFFFFF
##304BB11.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304bb1;
/* rgb */ color: rgb(48, 75, 177);
/* oklch */ color: oklch(45.5% 0.165 267.9);
Tailwind
colors: {
  custom: {
    50: '#7a7cc9',
    500: '#304bb1',
    950: '#000000',
  },
}
SCSS
$custom: #304bb1;
$custom-light: #7a7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb1",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 227.442,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45509,
    "c": 0.16532,
    "h": 267.9
  },
  "luminance": 0.08835
}

Semantic roles & 50–950 ramp

primary
#304BB1
secondary
#C5B578
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304BB1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#304BB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva