#304F8A#304F8A

#304F8A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.104 H 262.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#304F8A
RGBrgb(48, 79, 138)
HSLhsl(219, 48%, 36%)
HSVhsv(219, 65%, 54%)
CMYKcmyk(65.2%, 42.8%, 0%, 45.9%)
CIE-LABlab(34.10, 8.54, -36.33)
CIE-LCHlch(34.10, 37.32, 283.24°)
OKLaboklab(43.46% -0.0144 -0.1035)
OKLCHoklch(43.46% 0.104 262.1)
XYZxyz(8.6007, 8.0545, 25.1413)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F8A #8A6B30
analogous
#307C8A #304F8A #3E308A
triadic
#304F8A #8A304F #4F8A30
tetradic
#304F8A #8A307C #8A6B30 #308A3E
square
#304F8A #8A307C #8A6B30 #308A3E
split-complementary
#304F8A #8A3E30 #7C8A30
monochromatic
#101B2F #20355D #304F8A #4069B7 #698BCB

Accessibility & contrast

On white

8.04
#304F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#304F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F8A
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F8A#FFFFFF#000000##FFFFFF
##304F8A1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558C
Deuteranopia (green-blind)
#274C89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #304f8a;
/* rgb */ color: rgb(48, 79, 138);
/* oklch */ color: oklch(43.5% 0.104 262.1);
Tailwind
colors: {
  custom: {
    50: '#727fac',
    500: '#304f8a',
    950: '#000000',
  },
}
SCSS
$custom: #304f8a;
$custom-light: #727fac;
$custom-dark: #000000;
JSON
{
  "hex": "#304f8a",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 219.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4346,
    "c": 0.10449,
    "h": 262.1
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#304F8A
secondary
#B29764
accent
#A950D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #304F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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