#304E99#304E99

#304E99 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.128 H 265.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#304E99
RGBrgb(48, 78, 153)
HSLhsl(223, 52%, 39%)
HSVhsv(223, 69%, 60%)
CMYKcmyk(68.6%, 49%, 0%, 40%)
CIE-LABlab(34.75, 14.82, -44.40)
CIE-LCHlch(34.75, 46.81, 288.46°)
OKLaboklab(44.27% -0.0107 -0.1272)
OKLCHoklch(44.27% 0.128 265.2)
XYZxyz(9.6911, 8.3761, 31.2368)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E99 #997B30
analogous
#308399 #304E99 #473099
triadic
#304E99 #99304E #4E9930
tetradic
#304E99 #993083 #997B30 #309947
square
#304E99 #993083 #997B30 #309947
split-complementary
#304E99 #994730 #839930
monochromatic
#131F3C #21366A #304E99 #4267C4 #718DD2

Accessibility & contrast

On white

7.85
#304E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#304E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E99
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E99#FFFFFF#000000##FFFFFF
##304E991.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579C
Deuteranopia (green-blind)
#0C4D97
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304e99;
/* rgb */ color: rgb(48, 78, 153);
/* oklch */ color: oklch(44.3% 0.128 265.2);
Tailwind
colors: {
  custom: {
    50: '#757fb7',
    500: '#304e99',
    950: '#000000',
  },
}
SCSS
$custom: #304e99;
$custom-light: #757fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#304e99",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 222.857,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44272,
    "c": 0.12768,
    "h": 265.2
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#304E99
secondary
#BAA36B
accent
#B34CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304E99

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

Preview Lab → · Contrast checker → · Palette generator →

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