#304AC9#304AC9

#304AC9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.4% C 0.198 H 268.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#304AC9
RGBrgb(48, 74, 201)
HSLhsl(230, 61%, 49%)
HSVhsv(230, 76%, 79%)
CMYKcmyk(76.1%, 63.2%, 0%, 21.2%)
CIE-LABlab(37.37, 35.29, -68.58)
CIE-LCHlch(37.37, 77.12, 297.23°)
OKLaboklab(47.39% -0.0053 -0.1983)
OKLCHoklch(47.39% 0.198 268.5)
XYZxyz(14.2067, 9.7414, 56.3786)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AC9 #C9AF30
analogous
#3097C9 #304AC9 #6330C9
triadic
#304AC9 #C9304A #4AC930
tetradic
#304AC9 #C93097 #C9AF30 #30C963
square
#304AC9 #C93097 #C9AF30 #30C963
split-complementary
#304AC9 #C96330 #97C930
monochromatic
#182666 #243898 #304AC9 #5E73D8 #8F9EE4

Accessibility & contrast

On white

7.12
#304AC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#304AC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AC9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AC9#FFFFFF#000000##FFFFFF
##304AC91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304ac9;
/* rgb */ color: rgb(48, 74, 201);
/* oklch */ color: oklch(47.4% 0.198 268.5);
Tailwind
colors: {
  custom: {
    50: '#807cda',
    500: '#304ac9',
    950: '#000000',
  },
}
SCSS
$custom: #304ac9;
$custom-light: #807cda;
$custom-dark: #000000;
JSON
{
  "hex": "#304ac9",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 201
  },
  "hsl": {
    "h": 229.804,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47392,
    "c": 0.19839,
    "h": 268.5
  },
  "luminance": 0.09743
}

Semantic roles & 50–950 ramp

primary
#304AC9
secondary
#CFC286
accent
#C943E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #304AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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