#304D96#304D96

#304D96 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.125 H 265.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#304D96
RGBrgb(48, 77, 150)
HSLhsl(223, 52%, 39%)
HSVhsv(223, 68%, 59%)
CMYKcmyk(68%, 48.7%, 0%, 41.2%)
CIE-LABlab(34.27, 14.36, -43.37)
CIE-LCHlch(34.27, 45.68, 288.32°)
OKLaboklab(43.84% -0.0102 -0.1242)
OKLCHoklch(43.84% 0.125 265.3)
XYZxyz(9.3759, 8.1372, 29.9248)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D96 #967930
analogous
#308096 #304D96 #463096
triadic
#304D96 #96304D #4D9630
tetradic
#304D96 #963080 #967930 #309646
square
#304D96 #963080 #967930 #309646
split-complementary
#304D96 #964630 #809630
monochromatic
#121D39 #213568 #304D96 #4166C2 #6F8BD1

Accessibility & contrast

On white

7.99
#304D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#304D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D96
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D96#FFFFFF#000000##FFFFFF
##304D961.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275699
Deuteranopia (green-blind)
#104C94
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304d96;
/* rgb */ color: rgb(48, 77, 150);
/* oklch */ color: oklch(43.8% 0.125 265.3);
Tailwind
colors: {
  custom: {
    50: '#747eb5',
    500: '#304d96',
    950: '#000000',
  },
}
SCSS
$custom: #304d96;
$custom-light: #747eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#304d96",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 150
  },
  "hsl": {
    "h": 222.941,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43836,
    "c": 0.12462,
    "h": 265.3
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#304D96
secondary
#B9A269
accent
#B34DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304D96

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

Preview Lab → · Contrast checker → · Palette generator →

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