#304C97#304C97

#304C97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.127 H 265.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#304C97
RGBrgb(48, 76, 151)
HSLhsl(224, 52%, 39%)
HSVhsv(224, 68%, 59%)
CMYKcmyk(68.2%, 49.7%, 0%, 40.8%)
CIE-LABlab(34.05, 15.40, -44.33)
CIE-LCHlch(34.05, 46.93, 289.16°)
OKLaboklab(43.69% -0.0091 -0.127)
OKLCHoklch(43.69% 0.127 265.9)
XYZxyz(9.3873, 8.0307, 30.3275)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C97 #977B30
analogous
#308097 #304C97 #483097
triadic
#304C97 #97304C #4C9730
tetradic
#304C97 #973080 #977B30 #309748
square
#304C97 #973080 #977B30 #309748
split-complementary
#304C97 #974830 #809730
monochromatic
#121D3A #213569 #304C97 #4165C3 #708AD2

Accessibility & contrast

On white

8.06
#304C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#304C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C97
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C97#FFFFFF#000000##FFFFFF
##304C971.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#084C95
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #304c97;
/* rgb */ color: rgb(48, 76, 151);
/* oklch */ color: oklch(43.7% 0.127 265.9);
Tailwind
colors: {
  custom: {
    50: '#747db6',
    500: '#304c97',
    950: '#000000',
  },
}
SCSS
$custom: #304c97;
$custom-light: #747db6;
$custom-dark: #000000;
JSON
{
  "hex": "#304c97",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 223.689,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43689,
    "c": 0.12736,
    "h": 265.9
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#304C97
secondary
#B9A46A
accent
#B44DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304C97

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

Preview Lab → · Contrast checker → · Palette generator →

#304C97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva