#304DC9#304DC9

#304DC9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.195 H 267.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#304DC9
RGBrgb(48, 77, 201)
HSLhsl(229, 61%, 49%)
HSVhsv(229, 76%, 79%)
CMYKcmyk(76.1%, 61.7%, 0%, 21.2%)
CIE-LABlab(38.11, 33.38, -67.37)
CIE-LCHlch(38.11, 75.18, 296.36°)
OKLaboklab(47.94% -0.0072 -0.1947)
OKLCHoklch(47.94% 0.195 267.9)
XYZxyz(14.4118, 10.1516, 56.4469)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DC9 #C9AC30
analogous
#309AC9 #304DC9 #5F30C9
triadic
#304DC9 #C9304D #4DC930
tetradic
#304DC9 #C9309A #C9AC30 #30C95F
square
#304DC9 #C9309A #C9AC30 #30C95F
split-complementary
#304DC9 #C95F30 #9AC930
monochromatic
#182766 #243A98 #304DC9 #5E75D8 #8F9FE4

Accessibility & contrast

On white

6.93
#304DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#304DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304DC9
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DC9#FFFFFF#000000##FFFFFF
##304DC91.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006D84
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #304dc9;
/* rgb */ color: rgb(48, 77, 201);
/* oklch */ color: oklch(47.9% 0.195 267.9);
Tailwind
colors: {
  custom: {
    50: '#7f7eda',
    500: '#304dc9',
    950: '#000000',
  },
}
SCSS
$custom: #304dc9;
$custom-light: #7f7eda;
$custom-dark: #000000;
JSON
{
  "hex": "#304dc9",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 201
  },
  "hsl": {
    "h": 228.627,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.19488,
    "h": 267.9
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#304DC9
secondary
#CFC186
accent
#C643E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #304DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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