#304D8A#304D8A

#304D8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.107 H 263.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#304D8A
RGBrgb(48, 77, 138)
HSLhsl(221, 48%, 36%)
HSVhsv(221, 65%, 54%)
CMYKcmyk(65.2%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.50, 9.87, -37.28)
CIE-LCHlch(33.50, 38.56, 284.83°)
OKLaboklab(43% -0.0123 -0.1063)
OKLCHoklch(43% 0.107 263.4)
XYZxyz(8.4586, 7.7703, 25.0939)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D8A #8A6D30
analogous
#307A8A #304D8A #40308A
triadic
#304D8A #8A304D #4D8A30
tetradic
#304D8A #8A307A #8A6D30 #308A40
square
#304D8A #8A307A #8A6D30 #308A40
split-complementary
#304D8A #8A4030 #7A8A30
monochromatic
#101A2F #20345D #304D8A #4066B7 #6989CB

Accessibility & contrast

On white

8.22
#304D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#304D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D8A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D8A#FFFFFF#000000##FFFFFF
##304D8A1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304d8a;
/* rgb */ color: rgb(48, 77, 138);
/* oklch */ color: oklch(43.0% 0.107 263.4);
Tailwind
colors: {
  custom: {
    50: '#727eac',
    500: '#304d8a',
    950: '#000000',
  },
}
SCSS
$custom: #304d8a;
$custom-light: #727eac;
$custom-dark: #000000;
JSON
{
  "hex": "#304d8a",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 220.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43,
    "c": 0.10701,
    "h": 263.4
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#304D8A
secondary
#B29964
accent
#AC50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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