#304CA9#304CA9

#304CA9 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.153 H 267.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#304CA9
RGBrgb(48, 76, 169)
HSLhsl(226, 56%, 43%)
HSVhsv(226, 72%, 66%)
CMYKcmyk(71.6%, 55%, 0%, 33.7%)
CIE-LABlab(35.32, 22.17, -53.09)
CIE-LCHlch(35.32, 57.53, 292.66°)
OKLaboklab(45.06% -0.0072 -0.1528)
OKLCHoklch(45.06% 0.153 267.3)
XYZxyz(10.9623, 8.6607, 38.6224)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CA9 #A98D30
analogous
#3088A9 #304CA9 #5130A9
triadic
#304CA9 #A9304C #4CA930
tetradic
#304CA9 #A93088 #A98D30 #30A951
square
#304CA9 #A93088 #A98D30 #30A951
split-complementary
#304CA9 #A95130 #88A930
monochromatic
#15214A #223779 #304CA9 #4A68CC #7A90D9

Accessibility & contrast

On white

7.69
#304CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#304CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CA9
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CA9#FFFFFF#000000##FFFFFF
##304CA91.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ca9;
/* rgb */ color: rgb(48, 76, 169);
/* oklch */ color: oklch(45.1% 0.153 267.3);
Tailwind
colors: {
  custom: {
    50: '#787dc3',
    500: '#304ca9',
    950: '#000000',
  },
}
SCSS
$custom: #304ca9;
$custom-light: #787dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#304ca9",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 169
  },
  "hsl": {
    "h": 226.116,
    "s": 55.76,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.153,
    "h": 267.3
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#304CA9
secondary
#C2AF73
accent
#BC49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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