#304F9F#304F9F

#304F9F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.135 H 265.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#304F9F
RGBrgb(48, 79, 159)
HSLhsl(223, 54%, 41%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(69.8%, 50.3%, 0%, 37.6%)
CIE-LABlab(35.44, 16.41, -46.90)
CIE-LCHlch(35.44, 49.69, 289.28°)
OKLaboklab(44.93% -0.0109 -0.1346)
OKLCHoklch(44.93% 0.135 265.4)
XYZxyz(10.2707, 8.7225, 33.9365)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F9F #9F8030
analogous
#30869F #304F9F #48309F
triadic
#304F9F #9F304F #4F9F30
tetradic
#304F9F #9F3086 #9F8030 #309F48
square
#304F9F #9F3086 #9F8030 #309F48
split-complementary
#304F9F #9F4830 #869F30
monochromatic
#142041 #223870 #304F9F #4569C7 #748FD5

Accessibility & contrast

On white

7.65
#304F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#304F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F9F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F9F#FFFFFF#000000##FFFFFF
##304F9F1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304f9f;
/* rgb */ color: rgb(48, 79, 159);
/* oklch */ color: oklch(44.9% 0.135 265.4);
Tailwind
colors: {
  custom: {
    50: '#767fbc',
    500: '#304f9f',
    950: '#000000',
  },
}
SCSS
$custom: #304f9f;
$custom-light: #767fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#304f9f",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 223.243,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44929,
    "c": 0.13502,
    "h": 265.4
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#304F9F
secondary
#BDA76E
accent
#B44BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #304F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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