#304479#304479

#304479 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.093 H 266.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#304479
RGBrgb(48, 68, 121)
HSLhsl(224, 43%, 33%)
HSVhsv(224, 60%, 47%)
CMYKcmyk(60.3%, 43.8%, 0%, 52.5%)
CIE-LABlab(29.77, 9.63, -32.68)
CIE-LCHlch(29.77, 34.07, 286.42°)
OKLaboklab(39.79% -0.0055 -0.0929)
OKLCHoklch(39.79% 0.093 266.6)
XYZxyz(6.7361, 6.1426, 18.9161)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304479 #796530
analogous
#306879 #304479 #413079
triadic
#304479 #793044 #447930
tetradic
#304479 #793068 #796530 #307941
square
#304479 #793068 #796530 #307941
split-complementary
#304479 #794130 #687930
monochromatic
#0D1321 #1F2B4D #304479 #415DA5 #627CC1

Accessibility & contrast

On white

9.42
#304479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#304479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304479
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304479#FFFFFF#000000##FFFFFF
##3044791.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7B
Deuteranopia (green-blind)
#234378
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304479;
/* rgb */ color: rgb(48, 68, 121);
/* oklch */ color: oklch(39.8% 0.093 266.6);
Tailwind
colors: {
  custom: {
    50: '#6f77a0',
    500: '#304479',
    950: '#000000',
  },
}
SCSS
$custom: #304479;
$custom-light: #6f77a0;
$custom-dark: #000000;
JSON
{
  "hex": "#304479",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 121
  },
  "hsl": {
    "h": 223.562,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39791,
    "c": 0.09311,
    "h": 266.6
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#304479
secondary
#A8935D
accent
#B055D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304479

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

Preview Lab → · Contrast checker → · Palette generator →

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