#304191#304191

#304191 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.133 H 270.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#304191
RGBrgb(48, 65, 145)
HSLhsl(229, 50%, 38%)
HSVhsv(229, 67%, 57%)
CMYKcmyk(66.9%, 55.2%, 0%, 43.1%)
CIE-LABlab(30.53, 20.55, -46.35)
CIE-LCHlch(30.53, 50.70, 293.91°)
OKLaboklab(40.89% 0.001 -0.1332)
OKLCHoklch(40.89% 0.133 270.4)
XYZxyz(8.2183, 6.4526, 27.5949)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304191 #918030
analogous
#307191 #304191 #503091
triadic
#304191 #913041 #419130
tetradic
#304191 #913071 #918030 #309150
square
#304191 #913071 #918030 #309150
split-complementary
#304191 #915030 #719130
monochromatic
#121835 #212C63 #304191 #3F56BF #6D7ECF

Accessibility & contrast

On white

9.17
#304191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#304191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304191
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304191#FFFFFF#000000##FFFFFF
##3041911.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074C94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304191;
/* rgb */ color: rgb(48, 65, 145);
/* oklch */ color: oklch(40.9% 0.133 270.4);
Tailwind
colors: {
  custom: {
    50: '#7475b2',
    500: '#304191',
    950: '#000000',
  },
}
SCSS
$custom: #304191;
$custom-light: #7475b2;
$custom-dark: #000000;
JSON
{
  "hex": "#304191",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 229.485,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40888,
    "c": 0.13316,
    "h": 270.4
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#304191
secondary
#B6A867
accent
#C14EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304191

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

Preview Lab → · Contrast checker → · Palette generator →

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