#304CB7#304CB7

#304CB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.172 H 267.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#304CB7
RGBrgb(48, 76, 183)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(73.8%, 58.5%, 0%, 28.2%)
CIE-LABlab(36.39, 27.39, -59.65)
CIE-LCHlch(36.39, 65.64, 294.67°)
OKLaboklab(46.2% -0.0066 -0.1721)
OKLCHoklch(46.2% 0.172 267.8)
XYZxyz(12.3476, 9.2148, 45.9185)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB7 #B79B30
analogous
#308FB7 #304CB7 #5830B7
triadic
#304CB7 #B7304C #4CB730
tetradic
#304CB7 #B7308F #B79B30 #30B758
square
#304CB7 #B7308F #B79B30 #30B758
split-complementary
#304CB7 #B75830 #8FB730
monochromatic
#172456 #233887 #304CB7 #526DD2 #8396DE

Accessibility & contrast

On white

7.39
#304CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#304CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB7
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB7#FFFFFF#000000##FFFFFF
##304CB71.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304cb7;
/* rgb */ color: rgb(48, 76, 183);
/* oklch */ color: oklch(46.2% 0.172 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#304cb7',
    950: '#000000',
  },
}
SCSS
$custom: #304cb7;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb7",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 227.556,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46204,
    "c": 0.17223,
    "h": 267.8
  },
  "luminance": 0.09216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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