#304492#304492

#304492 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.6% C 0.131 H 269.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#304492
RGBrgb(48, 68, 146)
HSLhsl(228, 51%, 38%)
HSVhsv(228, 67%, 57%)
CMYKcmyk(67.1%, 53.4%, 0%, 42.7%)
CIE-LABlab(31.43, 18.90, -45.49)
CIE-LCHlch(31.43, 49.26, 292.56°)
OKLaboklab(41.59% -0.0018 -0.1306)
OKLCHoklch(41.59% 0.131 269.2)
XYZxyz(8.4726, 6.8372, 28.0618)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304492 #927E30
analogous
#307592 #304492 #4D3092
triadic
#304492 #923044 #449230
tetradic
#304492 #923075 #927E30 #30924D
square
#304492 #923075 #927E30 #30924D
split-complementary
#304492 #924D30 #759230
monochromatic
#121936 #212F64 #304492 #3F5AC0 #6D81CF

Accessibility & contrast

On white

8.87
#304492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#304492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304492
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304492#FFFFFF#000000##FFFFFF
##3044921.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134F95
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304492;
/* rgb */ color: rgb(48, 68, 146);
/* oklch */ color: oklch(41.6% 0.131 269.2);
Tailwind
colors: {
  custom: {
    50: '#7477b2',
    500: '#304492',
    950: '#000000',
  },
}
SCSS
$custom: #304492;
$custom-light: #7477b2;
$custom-dark: #000000;
JSON
{
  "hex": "#304492",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 146
  },
  "hsl": {
    "h": 227.755,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41594,
    "c": 0.13062,
    "h": 269.2
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#304492
secondary
#B7A667
accent
#BD4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304492

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

Preview Lab → · Contrast checker → · Palette generator →

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