#304192#304192

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

Color values

HEX#304192
RGBrgb(48, 65, 146)
HSLhsl(230, 51%, 38%)
HSVhsv(230, 67%, 57%)
CMYKcmyk(67.1%, 55.5%, 0%, 42.7%)
CIE-LABlab(30.60, 20.92, -46.84)
CIE-LCHlch(30.60, 51.30, 294.07°)
OKLaboklab(40.97% 0.0011 -0.1346)
OKLCHoklch(40.97% 0.135 270.4)
XYZxyz(8.2958, 6.4835, 28.0028)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304192 #928130
analogous
#307292 #304192 #503092
triadic
#304192 #923041 #419230
tetradic
#304192 #923072 #928130 #309250
square
#304192 #923072 #928130 #309250
split-complementary
#304192 #925030 #729230
monochromatic
#121836 #212C64 #304192 #3F56C0 #6D7ECF

Accessibility & contrast

On white

9.14
#304192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#304192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304192
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304192#FFFFFF#000000##FFFFFF
##3041921.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044D95
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304192;
/* rgb */ color: rgb(48, 65, 146);
/* oklch */ color: oklch(41.0% 0.135 270.4);
Tailwind
colors: {
  custom: {
    50: '#7475b3',
    500: '#304192',
    950: '#000000',
  },
}
SCSS
$custom: #304192;
$custom-light: #7475b3;
$custom-dark: #000000;
JSON
{
  "hex": "#304192",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 146
  },
  "hsl": {
    "h": 229.592,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.13461,
    "h": 270.4
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#304192
secondary
#B7A967
accent
#C24EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304192

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

Preview Lab → · Contrast checker → · Palette generator →

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