#304B79#304B79

#304B79 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.4% C 0.084 H 260.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#304B79
RGBrgb(48, 75, 121)
HSLhsl(218, 43%, 33%)
HSVhsv(218, 60%, 47%)
CMYKcmyk(60.3%, 38%, 0%, 52.5%)
CIE-LABlab(31.90, 4.95, -29.31)
CIE-LCHlch(31.90, 29.72, 279.59°)
OKLaboklab(41.44% -0.0139 -0.083)
OKLCHoklch(41.44% 0.084 260.5)
XYZxyz(7.1850, 7.0404, 19.0658)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B79 #795E30
analogous
#306F79 #304B79 #393079
triadic
#304B79 #79304B #4B7930
tetradic
#304B79 #79306F #795E30 #307939
square
#304B79 #79306F #795E30 #307939
split-complementary
#304B79 #793930 #6F7930
monochromatic
#0D1521 #1F304D #304B79 #4166A5 #6285C1

Accessibility & contrast

On white

8.72
#304B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#304B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B79
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B79#FFFFFF#000000##FFFFFF
##304B791.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384F7B
Deuteranopia (green-blind)
#2E4878
Tritanopia (blue-blind)
#00555C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304b79;
/* rgb */ color: rgb(48, 75, 121);
/* oklch */ color: oklch(41.4% 0.084 260.5);
Tailwind
colors: {
  custom: {
    50: '#6f7da0',
    500: '#304b79',
    950: '#000000',
  },
}
SCSS
$custom: #304b79;
$custom-light: #6f7da0;
$custom-dark: #000000;
JSON
{
  "hex": "#304b79",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 121
  },
  "hsl": {
    "h": 217.808,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.08414,
    "h": 260.5
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#304B79
secondary
#A88C5D
accent
#A455D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #304B79

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

Preview Lab → · Contrast checker → · Palette generator →

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