#304E79#304E79

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

Color values

HEX#304E79
RGBrgb(48, 78, 121)
HSLhsl(215, 43%, 33%)
HSVhsv(215, 60%, 47%)
CMYKcmyk(60.3%, 35.5%, 0%, 52.5%)
CIE-LABlab(32.83, 2.98, -27.84)
CIE-LCHlch(32.83, 28.00, 276.11°)
OKLaboklab(42.16% -0.0175 -0.0787)
OKLCHoklch(42.16% 0.081 257.4)
XYZxyz(7.3933, 7.4570, 19.1352)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E79 #795B30
analogous
#307279 #304E79 #363079
triadic
#304E79 #79304E #4E7930
tetradic
#304E79 #793072 #795B30 #307936
square
#304E79 #793072 #795B30 #307936
split-complementary
#304E79 #793630 #727930
monochromatic
#0D1621 #1F324D #304E79 #416AA5 #6289C1

Accessibility & contrast

On white

8.43
#304E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#304E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E79
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E79#FFFFFF#000000##FFFFFF
##304E791.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517B
Deuteranopia (green-blind)
#334A78
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304e79;
/* rgb */ color: rgb(48, 78, 121);
/* oklch */ color: oklch(42.2% 0.081 257.4);
Tailwind
colors: {
  custom: {
    50: '#6f7fa0',
    500: '#304e79',
    950: '#000000',
  },
}
SCSS
$custom: #304e79;
$custom-light: #6f7fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#304e79",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 121
  },
  "hsl": {
    "h": 215.342,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42159,
    "c": 0.08062,
    "h": 257.4
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#304E79
secondary
#A8895D
accent
#9F55D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #304E79

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

Preview Lab → · Contrast checker → · Palette generator →

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