#304A99#304A99

#304A99 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.4% C 0.133 H 267.0°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#304A99
RGBrgb(48, 74, 153)
HSLhsl(225, 52%, 39%)
HSVhsv(225, 69%, 60%)
CMYKcmyk(68.6%, 51.6%, 0%, 40%)
CIE-LABlab(33.62, 17.49, -46.23)
CIE-LCHlch(33.62, 49.43, 290.72°)
OKLaboklab(43.41% -0.0069 -0.1327)
OKLCHoklch(43.41% 0.133 267)
XYZxyz(9.4155, 7.8249, 31.1450)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A99 #997F30
analogous
#307F99 #304A99 #4B3099
triadic
#304A99 #99304A #4A9930
tetradic
#304A99 #99307F #997F30 #30994B
square
#304A99 #99307F #997F30 #30994B
split-complementary
#304A99 #994B30 #7F9930
monochromatic
#131D3C #21336A #304A99 #4262C4 #7189D2

Accessibility & contrast

On white

8.19
#304A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#304A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A99
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A99#FFFFFF#000000##FFFFFF
##304A991.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C549C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304a99;
/* rgb */ color: rgb(48, 74, 153);
/* oklch */ color: oklch(43.4% 0.133 267.0);
Tailwind
colors: {
  custom: {
    50: '#757cb8',
    500: '#304a99',
    950: '#000000',
  },
}
SCSS
$custom: #304a99;
$custom-light: #757cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#304a99",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 153
  },
  "hsl": {
    "h": 225.143,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43405,
    "c": 0.13287,
    "h": 267
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#304A99
secondary
#BAA66B
accent
#B84CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304A99

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

Preview Lab → · Contrast checker → · Palette generator →

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