#304E7A#304E7A

#304E7A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.2% C 0.082 H 257.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#304E7A
RGBrgb(48, 78, 122)
HSLhsl(216, 44%, 33%)
HSVhsv(216, 61%, 48%)
CMYKcmyk(60.7%, 36.1%, 0%, 52.2%)
CIE-LABlab(32.88, 3.34, -28.38)
CIE-LCHlch(32.88, 28.58, 276.72°)
OKLaboklab(42.22% -0.0173 -0.0803)
OKLCHoklch(42.22% 0.082 257.9)
XYZxyz(7.4549, 7.4817, 19.4598)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E7A #7A5C30
analogous
#30737A #304E7A #37307A
triadic
#304E7A #7A304E #4E7A30
tetradic
#304E7A #7A3073 #7A5C30 #307A37
square
#304E7A #7A3073 #7A5C30 #307A37
split-complementary
#304E7A #7A3730 #737A30
monochromatic
#0D1622 #1F324E #304E7A #416AA6 #6389C2

Accessibility & contrast

On white

8.41
#304E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#304E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E7A
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E7A#FFFFFF#000000##FFFFFF
##304E7A1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517C
Deuteranopia (green-blind)
#324A79
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304e7a;
/* rgb */ color: rgb(48, 78, 122);
/* oklch */ color: oklch(42.2% 0.082 257.9);
Tailwind
colors: {
  custom: {
    50: '#6f7fa0',
    500: '#304e7a',
    950: '#000000',
  },
}
SCSS
$custom: #304e7a;
$custom-light: #6f7fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#304e7a",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 122
  },
  "hsl": {
    "h": 215.676,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.08209,
    "h": 257.9
  },
  "luminance": 0.07482
}

Semantic roles & 50–950 ramp

primary
#304E7A
secondary
#A98A5D
accent
#A055D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #304E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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