#304992#304992

#304992 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.124 H 266.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#304992
RGBrgb(48, 73, 146)
HSLhsl(225, 51%, 38%)
HSVhsv(225, 67%, 57%)
CMYKcmyk(67.1%, 50%, 0%, 42.7%)
CIE-LABlab(32.85, 15.54, -43.21)
CIE-LCHlch(32.85, 45.92, 289.77°)
OKLaboklab(42.67% -0.0068 -0.1238)
OKLCHoklch(42.67% 0.124 266.9)
XYZxyz(8.7880, 7.4680, 28.1669)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304992 #927930
analogous
#307A92 #304992 #483092
triadic
#304992 #923049 #499230
tetradic
#304992 #92307A #927930 #309248
square
#304992 #92307A #927930 #309248
split-complementary
#304992 #924830 #7A9230
monochromatic
#121B36 #213264 #304992 #3F60C0 #6D86CF

Accessibility & contrast

On white

8.42
#304992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#304992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304992
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304992#FFFFFF#000000##FFFFFF
##3049921.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225295
Deuteranopia (green-blind)
#094990
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304992;
/* rgb */ color: rgb(48, 73, 146);
/* oklch */ color: oklch(42.7% 0.124 266.9);
Tailwind
colors: {
  custom: {
    50: '#737bb2',
    500: '#304992',
    950: '#000000',
  },
}
SCSS
$custom: #304992;
$custom-light: #737bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#304992",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 146
  },
  "hsl": {
    "h": 224.694,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.12399,
    "h": 266.9
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#304992
secondary
#B7A267
accent
#B64EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304992

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

Preview Lab → · Contrast checker → · Palette generator →

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