#304D8D#304D8D

#304D8D is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.111 H 264.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#304D8D
RGBrgb(48, 77, 141)
HSLhsl(221, 49%, 37%)
HSVhsv(221, 66%, 55%)
CMYKcmyk(66%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.69, 10.99, -38.82)
CIE-LCHlch(33.69, 40.34, 285.81°)
OKLaboklab(43.2% -0.0117 -0.1108)
OKLCHoklch(43.2% 0.111 264)
XYZxyz(8.6788, 7.8584, 26.2536)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D8D #8D7030
analogous
#307C8D #304D8D #42308D
triadic
#304D8D #8D304D #4D8D30
tetradic
#304D8D #8D307C #8D7030 #308D42
square
#304D8D #8D307C #8D7030 #308D42
split-complementary
#304D8D #8D4230 #7C8D30
monochromatic
#111B32 #20345F #304D8D #4066BB #6B89CD

Accessibility & contrast

On white

8.17
#304D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304D8D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D8D#FFFFFF#000000##FFFFFF
##304D8D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304d8d;
/* rgb */ color: rgb(48, 77, 141);
/* oklch */ color: oklch(43.2% 0.111 264.0);
Tailwind
colors: {
  custom: {
    50: '#727eaf',
    500: '#304d8d',
    950: '#000000',
  },
}
SCSS
$custom: #304d8d;
$custom-light: #727eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#304d8d",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 221.29,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43204,
    "c": 0.11144,
    "h": 264
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#304D8D
secondary
#B49B65
accent
#AE4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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