#304F86#304F86

#304F86 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.099 H 261.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#304F86
RGBrgb(48, 79, 134)
HSLhsl(218, 47%, 36%)
HSVhsv(218, 64%, 53%)
CMYKcmyk(64.2%, 41%, 0%, 47.5%)
CIE-LABlab(33.86, 7.06, -34.25)
CIE-LCHlch(33.86, 34.97, 281.65°)
OKLaboklab(43.2% -0.0153 -0.0974)
OKLCHoklch(43.2% 0.099 261.1)
XYZxyz(8.3165, 7.9408, 23.6441)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F86 #866730
analogous
#307A86 #304F86 #3C3086
triadic
#304F86 #86304F #4F8630
tetradic
#304F86 #86307A #866730 #30863C
square
#304F86 #86307A #866730 #30863C
split-complementary
#304F86 #863C30 #7A8630
monochromatic
#101A2C #203459 #304F86 #406AB3 #688BC9

Accessibility & contrast

On white

8.11
#304F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#304F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F86
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F86#FFFFFF#000000##FFFFFF
##304F861.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375488
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #304f86;
/* rgb */ color: rgb(48, 79, 134);
/* oklch */ color: oklch(43.2% 0.099 261.1);
Tailwind
colors: {
  custom: {
    50: '#717fa9',
    500: '#304f86',
    950: '#000000',
  },
}
SCSS
$custom: #304f86;
$custom-light: #717fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#304f86",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 218.372,
    "s": 47.253,
    "l": 35.686
  },
  "oklch": {
    "l": 0.432,
    "c": 0.0986,
    "h": 261.1
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#304F86
secondary
#B09462
accent
#A751D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #304F86

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

Preview Lab → · Contrast checker → · Palette generator →

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