#304DB0#304DB0

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

Color values

HEX#304DB0
RGBrgb(48, 77, 176)
HSLhsl(226, 57%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(72.7%, 56.2%, 0%, 31%)
CIE-LABlab(36.12, 24.13, -55.96)
CIE-LCHlch(36.12, 60.94, 293.32°)
OKLaboklab(45.83% -0.0076 -0.1613)
OKLCHoklch(45.83% 0.161 267.3)
XYZxyz(11.7066, 9.0695, 42.1995)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB0 #B09330
analogous
#308DB0 #304DB0 #5330B0
triadic
#304DB0 #B0304D #4DB030
tetradic
#304DB0 #B0308D #B09330 #30B053
square
#304DB0 #B0308D #B09330 #30B053
split-complementary
#304DB0 #B05330 #8DB030
monochromatic
#162350 #233880 #304DB0 #4E6BCF #7E94DC

Accessibility & contrast

On white

7.46
#304DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304DB0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB0#FFFFFF#000000##FFFFFF
##304DB01.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304db0;
/* rgb */ color: rgb(48, 77, 176);
/* oklch */ color: oklch(45.8% 0.161 267.3);
Tailwind
colors: {
  custom: {
    50: '#7a7ec8',
    500: '#304db0',
    950: '#000000',
  },
}
SCSS
$custom: #304db0;
$custom-light: #7a7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#304db0",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 176
  },
  "hsl": {
    "h": 226.406,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45827,
    "c": 0.16144,
    "h": 267.3
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#304DB0
secondary
#C5B377
accent
#BE47E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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