#304DB9#304DB9

#304DB9 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.6% C 0.174 H 267.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#304DB9
RGBrgb(48, 77, 185)
HSLhsl(227, 59%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(74.1%, 58.4%, 0%, 27.5%)
CIE-LABlab(36.81, 27.48, -60.14)
CIE-LCHlch(36.81, 66.12, 294.56°)
OKLaboklab(46.57% -0.0073 -0.1735)
OKLCHoklch(46.57% 0.174 267.6)
XYZxyz(12.6267, 9.4376, 47.0457)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB9 #B99C30
analogous
#3091B9 #304DB9 #5730B9
triadic
#304DB9 #B9304D #4DB930
tetradic
#304DB9 #B93091 #B99C30 #30B957
square
#304DB9 #B93091 #B99C30 #30B957
split-complementary
#304DB9 #B95730 #91B930
monochromatic
#172558 #233988 #304DB9 #546FD3 #8497DF

Accessibility & contrast

On white

7.27
#304DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#304DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB9#FFFFFF#000000##FFFFFF
##304DB91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304db9;
/* rgb */ color: rgb(48, 77, 185);
/* oklch */ color: oklch(46.6% 0.174 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7ecf',
    500: '#304db9',
    950: '#000000',
  },
}
SCSS
$custom: #304db9;
$custom-light: #7c7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#304db9",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 227.299,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46567,
    "c": 0.1737,
    "h": 267.6
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#304DB9
secondary
#C9B87C
accent
#C146E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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