#304F99#304F99

#304F99 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.126 H 264.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#304F99
RGBrgb(48, 79, 153)
HSLhsl(222, 52%, 39%)
HSVhsv(222, 69%, 60%)
CMYKcmyk(68.6%, 48.4%, 0%, 40%)
CIE-LABlab(35.04, 14.15, -43.94)
CIE-LCHlch(35.04, 46.16, 287.85°)
OKLaboklab(44.49% -0.0117 -0.1258)
OKLCHoklch(44.49% 0.126 264.7)
XYZxyz(9.7627, 8.5193, 31.2607)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F99 #997A30
analogous
#308499 #304F99 #463099
triadic
#304F99 #99304F #4F9930
tetradic
#304F99 #993084 #997A30 #309946
square
#304F99 #993084 #997A30 #309946
split-complementary
#304F99 #994630 #849930
monochromatic
#131F3C #21376A #304F99 #4269C4 #718ED2

Accessibility & contrast

On white

7.77
#304F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#304F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F99
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F99#FFFFFF#000000##FFFFFF
##304F991.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589C
Deuteranopia (green-blind)
#114E97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304f99;
/* rgb */ color: rgb(48, 79, 153);
/* oklch */ color: oklch(44.5% 0.126 264.7);
Tailwind
colors: {
  custom: {
    50: '#757fb7',
    500: '#304f99',
    950: '#000000',
  },
}
SCSS
$custom: #304f99;
$custom-light: #757fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#304f99",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 222.286,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44492,
    "c": 0.12639,
    "h": 264.7
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#304F99
secondary
#BAA36B
accent
#B14CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304F99

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

Preview Lab → · Contrast checker → · Palette generator →

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