#304A8F#304A8F

#304A8F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.7% C 0.118 H 266.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#304A8F
RGBrgb(48, 74, 143)
HSLhsl(224, 50%, 37%)
HSVhsv(224, 66%, 56%)
CMYKcmyk(66.4%, 48.3%, 0%, 43.9%)
CIE-LABlab(32.94, 13.74, -41.24)
CIE-LCHlch(32.94, 43.47, 288.43°)
OKLaboklab(42.67% -0.0082 -0.118)
OKLCHoklch(42.67% 0.118 266)
XYZxyz(8.6239, 7.5083, 26.9760)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A8F #8F7530
analogous
#30798F #304A8F #46308F
triadic
#304A8F #8F304A #4A8F30
tetradic
#304A8F #8F3079 #8F7530 #308F46
square
#304A8F #8F3079 #8F7530 #308F46
split-complementary
#304A8F #8F4630 #798F30
monochromatic
#111B33 #213261 #304A8F #3F62BD #6C87CE

Accessibility & contrast

On white

8.39
#304A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#304A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A8F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A8F#FFFFFF#000000##FFFFFF
##304A8F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#14498E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304a8f;
/* rgb */ color: rgb(48, 74, 143);
/* oklch */ color: oklch(42.7% 0.118 266.0);
Tailwind
colors: {
  custom: {
    50: '#737cb0',
    500: '#304a8f',
    950: '#000000',
  },
}
SCSS
$custom: #304a8f;
$custom-light: #737cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#304a8f",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 143
  },
  "hsl": {
    "h": 223.579,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42671,
    "c": 0.11828,
    "h": 266
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#304A8F
secondary
#B59F66
accent
#B34FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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