#304591#304591

#304591 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.128 H 268.7°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#304591
RGBrgb(48, 69, 145)
HSLhsl(227, 50%, 38%)
HSVhsv(227, 67%, 57%)
CMYKcmyk(66.9%, 52.4%, 0%, 43.1%)
CIE-LABlab(31.64, 17.85, -44.54)
CIE-LCHlch(31.64, 47.99, 291.84°)
OKLaboklab(41.73% -0.0029 -0.1278)
OKLCHoklch(41.73% 0.128 268.7)
XYZxyz(8.4561, 6.9282, 27.6742)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304591 #917C30
analogous
#307691 #304591 #4B3091
triadic
#304591 #913045 #459130
tetradic
#304591 #913076 #917C30 #30914B
square
#304591 #913076 #917C30 #30914B
split-complementary
#304591 #914B30 #769130
monochromatic
#121935 #212F63 #304591 #3F5BBF #6D82CF

Accessibility & contrast

On white

8.80
#304591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304591
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304591#FFFFFF#000000##FFFFFF
##3045911.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184F94
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304591;
/* rgb */ color: rgb(48, 69, 145);
/* oklch */ color: oklch(41.7% 0.128 268.7);
Tailwind
colors: {
  custom: {
    50: '#7378b2',
    500: '#304591',
    950: '#000000',
  },
}
SCSS
$custom: #304591;
$custom-light: #7378b2;
$custom-dark: #000000;
JSON
{
  "hex": "#304591",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 227.01,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4173,
    "c": 0.12783,
    "h": 268.7
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

primary
#304591
secondary
#B6A567
accent
#BC4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304591

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

Preview Lab → · Contrast checker → · Palette generator →

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