#304578#304578

#304578 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.090 H 265.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#304578
RGBrgb(48, 69, 120)
HSLhsl(223, 43%, 33%)
HSVhsv(223, 60%, 47%)
CMYKcmyk(60%, 42.5%, 0%, 52.9%)
CIE-LABlab(30.01, 8.60, -31.67)
CIE-LCHlch(30.01, 32.82, 285.18°)
OKLaboklab(39.96% -0.0069 -0.09)
OKLCHoklch(39.96% 0.09 265.6)
XYZxyz(6.7361, 6.2401, 18.6152)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304578 #786330
analogous
#306978 #304578 #3F3078
triadic
#304578 #783045 #457830
tetradic
#304578 #783069 #786330 #30783F
square
#304578 #783069 #786330 #30783F
split-complementary
#304578 #783F30 #697830
monochromatic
#0D1321 #1F2C4C #304578 #415EA4 #627EC0

Accessibility & contrast

On white

9.34
#304578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304578
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304578#FFFFFF#000000##FFFFFF
##3045781.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4A7A
Deuteranopia (green-blind)
#264477
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304578;
/* rgb */ color: rgb(48, 69, 120);
/* oklch */ color: oklch(40.0% 0.090 265.6);
Tailwind
colors: {
  custom: {
    50: '#6f789f',
    500: '#304578',
    950: '#000000',
  },
}
SCSS
$custom: #304578;
$custom-light: #6f789f;
$custom-dark: #000000;
JSON
{
  "hex": "#304578",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 120
  },
  "hsl": {
    "h": 222.5,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39957,
    "c": 0.09024,
    "h": 265.6
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#304578
secondary
#A7925C
accent
#AE55D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304578

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

Preview Lab → · Contrast checker → · Palette generator →

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