#304D9F#304D9F

#304D9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.138 H 266.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#304D9F
RGBrgb(48, 77, 159)
HSLhsl(224, 54%, 41%)
HSVhsv(224, 70%, 62%)
CMYKcmyk(69.8%, 51.6%, 0%, 37.6%)
CIE-LABlab(34.88, 17.74, -47.82)
CIE-LCHlch(34.88, 51.00, 290.36°)
OKLaboklab(44.5% -0.009 -0.1373)
OKLCHoklch(44.5% 0.138 266.2)
XYZxyz(10.1286, 8.4383, 33.8891)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D9F #9F8230
analogous
#30849F #304D9F #4A309F
triadic
#304D9F #9F304D #4D9F30
tetradic
#304D9F #9F3084 #9F8230 #309F4A
square
#304D9F #9F3084 #9F8230 #309F4A
split-complementary
#304D9F #9F4A30 #849F30
monochromatic
#141F41 #223670 #304D9F #4567C7 #748ED5

Accessibility & contrast

On white

7.81
#304D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#304D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D9F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D9F#FFFFFF#000000##FFFFFF
##304D9F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C57A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304d9f;
/* rgb */ color: rgb(48, 77, 159);
/* oklch */ color: oklch(44.5% 0.138 266.2);
Tailwind
colors: {
  custom: {
    50: '#767ebc',
    500: '#304d9f',
    950: '#000000',
  },
}
SCSS
$custom: #304d9f;
$custom-light: #767ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#304d9f",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 224.324,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44499,
    "c": 0.1376,
    "h": 266.2
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#304D9F
secondary
#BDA86E
accent
#B74BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #304D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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