#304D99#304D99

#304D99 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.129 H 265.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#304D99
RGBrgb(48, 77, 153)
HSLhsl(223, 52%, 39%)
HSVhsv(223, 69%, 60%)
CMYKcmyk(68.6%, 49.7%, 0%, 40%)
CIE-LABlab(34.47, 15.49, -44.86)
CIE-LCHlch(34.47, 47.46, 289.04°)
OKLaboklab(44.05% -0.0098 -0.1286)
OKLCHoklch(44.05% 0.129 265.7)
XYZxyz(9.6206, 8.2351, 31.2133)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D99 #997C30
analogous
#308299 #304D99 #483099
triadic
#304D99 #99304D #4D9930
tetradic
#304D99 #993082 #997C30 #309948
square
#304D99 #993082 #997C30 #309948
split-complementary
#304D99 #994830 #829930
monochromatic
#131E3C #21366A #304D99 #4266C4 #718CD2

Accessibility & contrast

On white

7.93
#304D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#304D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D99
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D99#FFFFFF#000000##FFFFFF
##304D991.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569C
Deuteranopia (green-blind)
#074D97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304d99;
/* rgb */ color: rgb(48, 77, 153);
/* oklch */ color: oklch(44.1% 0.129 265.7);
Tailwind
colors: {
  custom: {
    50: '#757eb7',
    500: '#304d99',
    950: '#000000',
  },
}
SCSS
$custom: #304d99;
$custom-light: #757eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#304d99",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 153
  },
  "hsl": {
    "h": 223.429,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44054,
    "c": 0.12897,
    "h": 265.7
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#304D99
secondary
#BAA46B
accent
#B44CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304D99

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

Preview Lab → · Contrast checker → · Palette generator →

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