#304CB9#304CB9

#304CB9 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.175 H 267.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#304CB9
RGBrgb(48, 76, 185)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 74%, 73%)
CMYKcmyk(74.1%, 58.9%, 0%, 27.5%)
CIE-LABlab(36.55, 28.14, -60.57)
CIE-LCHlch(36.55, 66.78, 294.92°)
OKLaboklab(46.37% -0.0065 -0.1748)
OKLCHoklch(46.37% 0.175 267.9)
XYZxyz(12.5573, 9.2987, 47.0226)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB9 #B99D30
analogous
#3090B9 #304CB9 #5830B9
triadic
#304CB9 #B9304C #4CB930
tetradic
#304CB9 #B93090 #B99D30 #30B958
square
#304CB9 #B93090 #B99D30 #30B958
split-complementary
#304CB9 #B95830 #90B930
monochromatic
#172458 #233888 #304CB9 #546ED3 #8497DF

Accessibility & contrast

On white

7.34
#304CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#304CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB9#FFFFFF#000000##FFFFFF
##304CB91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304cb9;
/* rgb */ color: rgb(48, 76, 185);
/* oklch */ color: oklch(46.4% 0.175 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dcf',
    500: '#304cb9',
    950: '#000000',
  },
}
SCSS
$custom: #304cb9;
$custom-light: #7c7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb9",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 227.737,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46372,
    "c": 0.17492,
    "h": 267.9
  },
  "luminance": 0.093
}

Semantic roles & 50–950 ramp

primary
#304CB9
secondary
#C9B97C
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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