#304CB3#304CB3

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

Color values

HEX#304CB3
RGBrgb(48, 76, 179)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 70%)
CMYKcmyk(73.2%, 57.5%, 0%, 29.8%)
CIE-LABlab(36.08, 25.90, -57.79)
CIE-LCHlch(36.08, 63.33, 294.14°)
OKLaboklab(45.87% -0.0067 -0.1667)
OKLCHoklch(45.87% 0.167 267.7)
XYZxyz(11.9372, 9.0507, 43.7569)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB3 #B39730
analogous
#308DB3 #304CB3 #5630B3
triadic
#304CB3 #B3304C #4CB330
tetradic
#304CB3 #B3308D #B39730 #30B356
square
#304CB3 #B3308D #B39730 #30B356
split-complementary
#304CB3 #B35630 #8DB330
monochromatic
#162352 #233883 #304CB3 #506BD0 #8094DD

Accessibility & contrast

On white

7.47
#304CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#304CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB3#FFFFFF#000000##FFFFFF
##304CB31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304cb3;
/* rgb */ color: rgb(48, 76, 179);
/* oklch */ color: oklch(45.9% 0.167 267.7);
Tailwind
colors: {
  custom: {
    50: '#7a7dcb',
    500: '#304cb3',
    950: '#000000',
  },
}
SCSS
$custom: #304cb3;
$custom-light: #7a7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb3",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 227.176,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.1668,
    "h": 267.7
  },
  "luminance": 0.09052
}

Semantic roles & 50–950 ramp

primary
#304CB3
secondary
#C6B679
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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