#304387#304387

#304387 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.5% C 0.116 H 269.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#304387
RGBrgb(48, 67, 135)
HSLhsl(227, 48%, 36%)
HSVhsv(227, 64%, 53%)
CMYKcmyk(64.4%, 50.4%, 0%, 47.1%)
CIE-LABlab(30.38, 15.48, -40.43)
CIE-LCHlch(30.38, 43.29, 290.95°)
OKLaboklab(40.55% -0.002 -0.1157)
OKLCHoklch(40.55% 0.116 269)
XYZxyz(7.5978, 6.3913, 23.7502)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304387 #877430
analogous
#306E87 #304387 #483087
triadic
#304387 #873043 #438730
tetradic
#304387 #87306E #877430 #308748
square
#304387 #87306E #877430 #308748
split-complementary
#304387 #874830 #6E8730
monochromatic
#10162D #202D5A #304387 #4059B4 #687DC9

Accessibility & contrast

On white

9.22
#304387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#304387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304387
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304387#FFFFFF#000000##FFFFFF
##3043871.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C89
Deuteranopia (green-blind)
#0D4486
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304387;
/* rgb */ color: rgb(48, 67, 135);
/* oklch */ color: oklch(40.5% 0.116 269.0);
Tailwind
colors: {
  custom: {
    50: '#7276aa',
    500: '#304387',
    950: '#000000',
  },
}
SCSS
$custom: #304387;
$custom-light: #7276aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304387",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 226.897,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.11573,
    "h": 269
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#304387
secondary
#B19F62
accent
#BA51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304387

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

Preview Lab → · Contrast checker → · Palette generator →

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