#304E9F#304E9F

#304E9F is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.136 H 265.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#304E9F
RGBrgb(48, 78, 159)
HSLhsl(224, 54%, 41%)
HSVhsv(224, 70%, 62%)
CMYKcmyk(69.8%, 50.9%, 0%, 37.6%)
CIE-LABlab(35.16, 17.08, -47.36)
CIE-LCHlch(35.16, 50.35, 289.83°)
OKLaboklab(44.71% -0.0099 -0.1359)
OKLCHoklch(44.71% 0.136 265.8)
XYZxyz(10.1991, 8.5793, 33.9126)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E9F #9F8130
analogous
#30859F #304E9F #4A309F
triadic
#304E9F #9F304E #4E9F30
tetradic
#304E9F #9F3085 #9F8130 #309F4A
square
#304E9F #9F3085 #9F8130 #309F4A
split-complementary
#304E9F #9F4A30 #859F30
monochromatic
#142041 #223770 #304E9F #4568C7 #748ED5

Accessibility & contrast

On white

7.73
#304E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#304E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E9F
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E9F#FFFFFF#000000##FFFFFF
##304E9F1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304e9f;
/* rgb */ color: rgb(48, 78, 159);
/* oklch */ color: oklch(44.7% 0.136 265.8);
Tailwind
colors: {
  custom: {
    50: '#767fbc',
    500: '#304e9f',
    950: '#000000',
  },
}
SCSS
$custom: #304e9f;
$custom-light: #767fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#304e9f",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 223.784,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44713,
    "c": 0.1363,
    "h": 265.8
  },
  "luminance": 0.0858
}

Semantic roles & 50–950 ramp

primary
#304E9F
secondary
#BDA86E
accent
#B54BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #304E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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