#304C8F#304C8F

#304C8F is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.116 H 264.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#304C8F
RGBrgb(48, 76, 143)
HSLhsl(222, 50%, 37%)
HSVhsv(222, 66%, 56%)
CMYKcmyk(66.4%, 46.9%, 0%, 43.9%)
CIE-LABlab(33.52, 12.40, -40.30)
CIE-LCHlch(33.52, 42.17, 287.10°)
OKLaboklab(43.12% -0.0103 -0.1152)
OKLCHoklch(43.12% 0.116 264.9)
XYZxyz(8.7596, 7.7796, 27.0213)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C8F #8F7330
analogous
#307B8F #304C8F #44308F
triadic
#304C8F #8F304C #4C8F30
tetradic
#304C8F #8F307B #8F7330 #308F44
square
#304C8F #8F307B #8F7330 #308F44
split-complementary
#304C8F #8F4430 #7B8F30
monochromatic
#111B33 #213461 #304C8F #3F64BD #6C89CE

Accessibility & contrast

On white

8.22
#304C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#304C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C8F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C8F#FFFFFF#000000##FFFFFF
##304C8F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5392
Deuteranopia (green-blind)
#1A4B8E
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304c8f;
/* rgb */ color: rgb(48, 76, 143);
/* oklch */ color: oklch(43.1% 0.116 264.9);
Tailwind
colors: {
  custom: {
    50: '#737db0',
    500: '#304c8f',
    950: '#000000',
  },
}
SCSS
$custom: #304c8f;
$custom-light: #737db0;
$custom-dark: #000000;
JSON
{
  "hex": "#304c8f",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 222.316,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.11568,
    "h": 264.9
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#304C8F
secondary
#B59E66
accent
#B04FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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