#304579#304579

#304579 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.092 H 265.8°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#304579
RGBrgb(48, 69, 121)
HSLhsl(223, 43%, 33%)
HSVhsv(223, 60%, 47%)
CMYKcmyk(60.3%, 43%, 0%, 52.5%)
CIE-LABlab(30.07, 8.96, -32.21)
CIE-LCHlch(30.07, 33.43, 285.55°)
OKLaboklab(40.02% -0.0067 -0.0915)
OKLCHoklch(40.02% 0.092 265.8)
XYZxyz(6.7971, 6.2646, 18.9364)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304579 #796430
analogous
#306979 #304579 #3F3079
triadic
#304579 #793045 #457930
tetradic
#304579 #793069 #796430 #30793F
square
#304579 #793069 #796430 #30793F
split-complementary
#304579 #793F30 #697930
monochromatic
#0D1321 #1F2C4D #304579 #415EA5 #627EC1

Accessibility & contrast

On white

9.32
#304579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304579
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304579#FFFFFF#000000##FFFFFF
##3045791.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4A7B
Deuteranopia (green-blind)
#254478
Tritanopia (blue-blind)
#005159
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304579;
/* rgb */ color: rgb(48, 69, 121);
/* oklch */ color: oklch(40.0% 0.092 265.8);
Tailwind
colors: {
  custom: {
    50: '#6f78a0',
    500: '#304579',
    950: '#000000',
  },
}
SCSS
$custom: #304579;
$custom-light: #6f78a0;
$custom-dark: #000000;
JSON
{
  "hex": "#304579",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 121
  },
  "hsl": {
    "h": 222.74,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.09177,
    "h": 265.8
  },
  "luminance": 0.06265
}

Semantic roles & 50–950 ramp

primary
#304579
secondary
#A8925D
accent
#AF55D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304579

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

Preview Lab → · Contrast checker → · Palette generator →

#304579 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva