#304A8A#304A8A

#304A8A is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.111 H 265.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#304A8A
RGBrgb(48, 74, 138)
HSLhsl(223, 48%, 36%)
HSVhsv(223, 65%, 54%)
CMYKcmyk(65.2%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.61, 11.87, -38.69)
CIE-LCHlch(32.61, 40.47, 287.06°)
OKLaboklab(42.32% -0.009 -0.1105)
OKLCHoklch(42.32% 0.111 265.3)
XYZxyz(8.2536, 7.3602, 25.0255)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A8A #8A7030
analogous
#30778A #304A8A #43308A
triadic
#304A8A #8A304A #4A8A30
tetradic
#304A8A #8A3077 #8A7030 #308A43
square
#304A8A #8A3077 #8A7030 #308A43
split-complementary
#304A8A #8A4330 #778A30
monochromatic
#10192F #20325D #304A8A #4062B7 #6986CB

Accessibility & contrast

On white

8.49
#304A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#304A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A8A
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A8A#FFFFFF#000000##FFFFFF
##304A8A1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518C
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304a8a;
/* rgb */ color: rgb(48, 74, 138);
/* oklch */ color: oklch(42.3% 0.111 265.3);
Tailwind
colors: {
  custom: {
    50: '#727cac',
    500: '#304a8a',
    950: '#000000',
  },
}
SCSS
$custom: #304a8a;
$custom-light: #727cac;
$custom-dark: #000000;
JSON
{
  "hex": "#304a8a",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 222.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.11088,
    "h": 265.3
  },
  "luminance": 0.07361
}

Semantic roles & 50–950 ramp

primary
#304A8A
secondary
#B29C64
accent
#B150D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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