#304C8D#304C8D

#304C8D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.0% C 0.113 H 264.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#304C8D
RGBrgb(48, 76, 141)
HSLhsl(222, 49%, 37%)
HSVhsv(222, 66%, 55%)
CMYKcmyk(66%, 46.1%, 0%, 44.7%)
CIE-LABlab(33.39, 11.65, -39.29)
CIE-LCHlch(33.39, 40.98, 286.52°)
OKLaboklab(42.98% -0.0106 -0.1122)
OKLCHoklch(42.98% 0.113 264.6)
XYZxyz(8.6094, 7.7196, 26.2304)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C8D #8D7130
analogous
#307B8D #304C8D #42308D
triadic
#304C8D #8D304C #4C8D30
tetradic
#304C8D #8D307B #8D7130 #308D42
square
#304C8D #8D307B #8D7130 #308D42
split-complementary
#304C8D #8D4230 #7B8D30
monochromatic
#111B32 #20335F #304C8D #4065BB #6B88CD

Accessibility & contrast

On white

8.25
#304C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#304C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C8D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C8D#FFFFFF#000000##FFFFFF
##304C8D1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D538F
Deuteranopia (green-blind)
#1D4B8C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304c8d;
/* rgb */ color: rgb(48, 76, 141);
/* oklch */ color: oklch(43.0% 0.113 264.6);
Tailwind
colors: {
  custom: {
    50: '#727daf',
    500: '#304c8d',
    950: '#000000',
  },
}
SCSS
$custom: #304c8d;
$custom-light: #727daf;
$custom-dark: #000000;
JSON
{
  "hex": "#304c8d",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 221.935,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42978,
    "c": 0.11272,
    "h": 264.6
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#304C8D
secondary
#B49C65
accent
#AF4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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