#304392#304392

#304392 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.132 H 269.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#304392
RGBrgb(48, 67, 146)
HSLhsl(228, 51%, 38%)
HSVhsv(228, 67%, 57%)
CMYKcmyk(67.1%, 54.1%, 0%, 42.7%)
CIE-LABlab(31.15, 19.58, -45.95)
CIE-LCHlch(31.15, 49.94, 293.08°)
OKLaboklab(41.38% -0.0009 -0.132)
OKLCHoklch(41.38% 0.132 269.6)
XYZxyz(8.4126, 6.7172, 28.0418)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304392 #927F30
analogous
#307492 #304392 #4E3092
triadic
#304392 #923043 #439230
tetradic
#304392 #923074 #927F30 #30924E
square
#304392 #923074 #927F30 #30924E
split-complementary
#304392 #924E30 #749230
monochromatic
#121936 #212E64 #304392 #3F58C0 #6D80CF

Accessibility & contrast

On white

8.96
#304392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#304392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304392
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304392#FFFFFF#000000##FFFFFF
##3043921.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4E95
Deuteranopia (green-blind)
#004590
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304392;
/* rgb */ color: rgb(48, 67, 146);
/* oklch */ color: oklch(41.4% 0.132 269.6);
Tailwind
colors: {
  custom: {
    50: '#7476b3',
    500: '#304392',
    950: '#000000',
  },
}
SCSS
$custom: #304392;
$custom-light: #7476b3;
$custom-dark: #000000;
JSON
{
  "hex": "#304392",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 146
  },
  "hsl": {
    "h": 228.367,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.13195,
    "h": 269.6
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

primary
#304392
secondary
#B7A767
accent
#BF4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304392

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

Preview Lab → · Contrast checker → · Palette generator →

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