#304C99#304C99

#304C99 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.130 H 266.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#304C99
RGBrgb(48, 76, 153)
HSLhsl(224, 52%, 39%)
HSVhsv(224, 69%, 60%)
CMYKcmyk(68.6%, 50.3%, 0%, 40%)
CIE-LABlab(34.18, 16.15, -45.32)
CIE-LCHlch(34.18, 48.11, 289.62°)
OKLaboklab(43.84% -0.0088 -0.13)
OKLCHoklch(43.84% 0.13 266.1)
XYZxyz(9.5511, 8.0962, 31.1902)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C99 #997D30
analogous
#308199 #304C99 #493099
triadic
#304C99 #99304C #4C9930
tetradic
#304C99 #993081 #997D30 #309949
square
#304C99 #993081 #997D30 #309949
split-complementary
#304C99 #994930 #819930
monochromatic
#131E3C #21356A #304C99 #4265C4 #718BD2

Accessibility & contrast

On white

8.02
#304C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#304C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C99
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C99#FFFFFF#000000##FFFFFF
##304C991.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559C
Deuteranopia (green-blind)
#014C97
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #304c99;
/* rgb */ color: rgb(48, 76, 153);
/* oklch */ color: oklch(43.8% 0.130 266.1);
Tailwind
colors: {
  custom: {
    50: '#757db8',
    500: '#304c99',
    950: '#000000',
  },
}
SCSS
$custom: #304c99;
$custom-light: #757db8;
$custom-dark: #000000;
JSON
{
  "hex": "#304c99",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 153
  },
  "hsl": {
    "h": 224,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43836,
    "c": 0.13027,
    "h": 266.1
  },
  "luminance": 0.08097
}

Semantic roles & 50–950 ramp

primary
#304C99
secondary
#BAA56B
accent
#B54CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304C99

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

Preview Lab → · Contrast checker → · Palette generator →

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