#304C8A#304C8A

#304C8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.8% C 0.108 H 264.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#304C8A
RGBrgb(48, 76, 138)
HSLhsl(221, 48%, 36%)
HSVhsv(221, 65%, 54%)
CMYKcmyk(65.2%, 44.9%, 0%, 45.9%)
CIE-LABlab(33.20, 10.54, -37.75)
CIE-LCHlch(33.20, 39.19, 285.60°)
OKLaboklab(42.77% -0.0112 -0.1077)
OKLCHoklch(42.77% 0.108 264.1)
XYZxyz(8.3892, 7.6315, 25.0707)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C8A #8A6E30
analogous
#30798A #304C8A #41308A
triadic
#304C8A #8A304C #4C8A30
tetradic
#304C8A #8A3079 #8A6E30 #308A41
square
#304C8A #8A3079 #8A6E30 #308A41
split-complementary
#304C8A #8A4130 #798A30
monochromatic
#101A2F #20335D #304C8A #4065B7 #6988CB

Accessibility & contrast

On white

8.31
#304C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#304C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C8A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C8A#FFFFFF#000000##FFFFFF
##304C8A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#214A89
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304c8a;
/* rgb */ color: rgb(48, 76, 138);
/* oklch */ color: oklch(42.8% 0.108 264.1);
Tailwind
colors: {
  custom: {
    50: '#727dac',
    500: '#304c8a',
    950: '#000000',
  },
}
SCSS
$custom: #304c8a;
$custom-light: #727dac;
$custom-dark: #000000;
JSON
{
  "hex": "#304c8a",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 221.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42772,
    "c": 0.10829,
    "h": 264.1
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#304C8A
secondary
#B29A64
accent
#AE50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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