#304574#304574

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

Color values

HEX#304574
RGBrgb(48, 69, 116)
HSLhsl(221, 41%, 32%)
HSVhsv(221, 59%, 45%)
CMYKcmyk(58.6%, 40.5%, 0%, 54.5%)
CIE-LABlab(29.78, 7.14, -29.53)
CIE-LCHlch(29.78, 30.38, 283.60°)
OKLaboklab(39.7% -0.0078 -0.0837)
OKLCHoklch(39.7% 0.084 264.7)
XYZxyz(6.4984, 6.1451, 17.3633)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304574 #745F30
analogous
#306774 #304574 #3D3074
triadic
#304574 #743045 #457430
tetradic
#304574 #743067 #745F30 #30743D
square
#304574 #743067 #745F30 #30743D
split-complementary
#304574 #743D30 #677430
monochromatic
#0C121D #1E2B49 #304574 #425F9F #617DBE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304574#FFFFFF#000000##FFFFFF
##3045741.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)
#324976
Deuteranopia (green-blind)
#294373
Tritanopia (blue-blind)
#044F57
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304574;
/* rgb */ color: rgb(48, 69, 116);
/* oklch */ color: oklch(39.7% 0.084 264.7);
Tailwind
colors: {
  custom: {
    50: '#6e789c',
    500: '#304574',
    950: '#000000',
  },
}
SCSS
$custom: #304574;
$custom-light: #6e789c;
$custom-dark: #000000;
JSON
{
  "hex": "#304574",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 116
  },
  "hsl": {
    "h": 221.471,
    "s": 41.463,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.08407,
    "h": 264.7
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#304574
secondary
#A58E5B
accent
#AB57D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #304574

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

Preview Lab → · Contrast checker → · Palette generator →

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