#304587#304587

#304587 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.113 H 267.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#304587
RGBrgb(48, 69, 135)
HSLhsl(226, 48%, 36%)
HSVhsv(226, 64%, 53%)
CMYKcmyk(64.4%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.96, 14.12, -39.50)
CIE-LCHlch(30.96, 41.95, 289.67°)
OKLaboklab(40.99% -0.0041 -0.1129)
OKLCHoklch(40.99% 0.113 267.9)
XYZxyz(7.7187, 6.6332, 23.7905)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304587 #877230
analogous
#307087 #304587 #463087
triadic
#304587 #873045 #458730
tetradic
#304587 #873070 #877230 #308746
square
#304587 #873070 #877230 #308746
split-complementary
#304587 #874630 #708730
monochromatic
#10172D #202E5A #304587 #405CB4 #6880C9

Accessibility & contrast

On white

9.03
#304587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#304587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304587
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304587#FFFFFF#000000##FFFFFF
##3045871.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D89
Deuteranopia (green-blind)
#144586
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304587;
/* rgb */ color: rgb(48, 69, 135);
/* oklch */ color: oklch(41.0% 0.113 267.9);
Tailwind
colors: {
  custom: {
    50: '#7178aa',
    500: '#304587',
    950: '#000000',
  },
}
SCSS
$custom: #304587;
$custom-light: #7178aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304587",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 225.517,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40989,
    "c": 0.11303,
    "h": 267.9
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#304587
secondary
#B19E62
accent
#B751D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304587

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

Preview Lab → · Contrast checker → · Palette generator →

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