#304789#304789

#304789 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.6% C 0.113 H 267.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#304789
RGBrgb(48, 71, 137)
HSLhsl(224, 48%, 36%)
HSVhsv(224, 65%, 54%)
CMYKcmyk(65%, 48.2%, 0%, 46.3%)
CIE-LABlab(31.67, 13.52, -39.59)
CIE-LCHlch(31.67, 41.83, 288.85°)
OKLaboklab(41.58% -0.006 -0.1132)
OKLCHoklch(41.58% 0.113 267)
XYZxyz(7.9860, 6.9403, 24.5808)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304789 #897230
analogous
#307489 #304789 #463089
triadic
#304789 #893047 #478930
tetradic
#304789 #893074 #897230 #308946
square
#304789 #893074 #897230 #308946
split-complementary
#304789 #894630 #748930
monochromatic
#10182E #20305C #304789 #405EB6 #6982CA

Accessibility & contrast

On white

8.79
#304789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#304789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304789
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304789#FFFFFF#000000##FFFFFF
##3047891.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8B
Deuteranopia (green-blind)
#164788
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304789;
/* rgb */ color: rgb(48, 71, 137);
/* oklch */ color: oklch(41.6% 0.113 267.0);
Tailwind
colors: {
  custom: {
    50: '#7279ac',
    500: '#304789',
    950: '#000000',
  },
}
SCSS
$custom: #304789;
$custom-light: #7279ac;
$custom-dark: #000000;
JSON
{
  "hex": "#304789",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 224.494,
    "s": 48.108,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41576,
    "c": 0.11335,
    "h": 267
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#304789
secondary
#B29D63
accent
#B550D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304789

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

Preview Lab → · Contrast checker → · Palette generator →

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