#304190#304190

#304190 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.132 H 270.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#304190
RGBrgb(48, 65, 144)
HSLhsl(229, 50%, 38%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(66.7%, 54.9%, 0%, 43.5%)
CIE-LABlab(30.45, 20.18, -45.85)
CIE-LCHlch(30.45, 50.10, 293.75°)
OKLaboklab(40.81% 0.0009 -0.1317)
OKLCHoklch(40.81% 0.132 270.4)
XYZxyz(8.1416, 6.4219, 27.1906)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304190 #907F30
analogous
#307190 #304190 #4F3090
triadic
#304190 #903041 #419030
tetradic
#304190 #903071 #907F30 #30904F
square
#304190 #903071 #907F30 #30904F
split-complementary
#304190 #904F30 #719030
monochromatic
#111834 #212C62 #304190 #3F56BE #6C7ECE

Accessibility & contrast

On white

9.19
#304190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304190
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304190#FFFFFF#000000##FFFFFF
##3041901.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C93
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304190;
/* rgb */ color: rgb(48, 65, 144);
/* oklch */ color: oklch(40.8% 0.132 270.4);
Tailwind
colors: {
  custom: {
    50: '#7475b1',
    500: '#304190',
    950: '#000000',
  },
}
SCSS
$custom: #304190;
$custom-light: #7475b1;
$custom-dark: #000000;
JSON
{
  "hex": "#304190",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 144
  },
  "hsl": {
    "h": 229.375,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40808,
    "c": 0.13171,
    "h": 270.4
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304190

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

Preview Lab → · Contrast checker → · Palette generator →

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