#304DB1#304DB1

#304DB1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.163 H 267.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#304DB1
RGBrgb(48, 77, 177)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.9%, 56.5%, 0%, 30.6%)
CIE-LABlab(36.19, 24.50, -56.43)
CIE-LCHlch(36.19, 61.52, 293.47°)
OKLaboklab(45.91% -0.0076 -0.1626)
OKLCHoklch(45.91% 0.163 267.3)
XYZxyz(11.8059, 9.1092, 42.7225)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB1 #B19430
analogous
#308EB1 #304DB1 #5430B1
triadic
#304DB1 #B1304D #4DB130
tetradic
#304DB1 #B1308E #B19430 #30B154
square
#304DB1 #B1308E #B19430 #30B154
split-complementary
#304DB1 #B15430 #8EB130
monochromatic
#162351 #233881 #304DB1 #4F6CCF #7F94DC

Accessibility & contrast

On white

7.44
#304DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#304DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB1#FFFFFF#000000##FFFFFF
##304DB11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304db1;
/* rgb */ color: rgb(48, 77, 177);
/* oklch */ color: oklch(45.9% 0.163 267.3);
Tailwind
colors: {
  custom: {
    50: '#7a7ec9',
    500: '#304db1',
    950: '#000000',
  },
}
SCSS
$custom: #304db1;
$custom-light: #7a7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#304db1",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 226.512,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45908,
    "c": 0.16282,
    "h": 267.3
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#304DB1
secondary
#C5B478
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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