#304390#304390

#304390 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.2% C 0.129 H 269.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#304390
RGBrgb(48, 67, 144)
HSLhsl(228, 50%, 38%)
HSVhsv(228, 67%, 56%)
CMYKcmyk(66.7%, 53.5%, 0%, 43.5%)
CIE-LABlab(31.01, 18.83, -44.95)
CIE-LCHlch(31.01, 48.74, 292.73°)
OKLaboklab(41.23% -0.001 -0.129)
OKLCHoklch(41.23% 0.129 269.5)
XYZxyz(8.2584, 6.6556, 27.2296)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304390 #907D30
analogous
#307390 #304390 #4D3090
triadic
#304390 #903043 #439030
tetradic
#304390 #903073 #907D30 #30904D
square
#304390 #903073 #907D30 #30904D
split-complementary
#304390 #904D30 #739030
monochromatic
#111834 #212E62 #304390 #3F58BE #6C80CE

Accessibility & contrast

On white

9.01
#304390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304390
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304390#FFFFFF#000000##FFFFFF
##3043901.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D93
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304390;
/* rgb */ color: rgb(48, 67, 144);
/* oklch */ color: oklch(41.2% 0.129 269.5);
Tailwind
colors: {
  custom: {
    50: '#7376b1',
    500: '#304390',
    950: '#000000',
  },
}
SCSS
$custom: #304390;
$custom-light: #7376b1;
$custom-dark: #000000;
JSON
{
  "hex": "#304390",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 144
  },
  "hsl": {
    "h": 228.125,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41228,
    "c": 0.12903,
    "h": 269.5
  },
  "luminance": 0.06656
}

Semantic roles & 50–950 ramp

primary
#304390
secondary
#B5A666
accent
#BE4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304390

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

Preview Lab → · Contrast checker → · Palette generator →

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