#304C8B#304C8B

#304C8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.110 H 264.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#304C8B
RGBrgb(48, 76, 139)
HSLhsl(222, 49%, 37%)
HSVhsv(222, 65%, 55%)
CMYKcmyk(65.5%, 45.3%, 0%, 45.5%)
CIE-LABlab(33.27, 10.91, -38.26)
CIE-LCHlch(33.27, 39.79, 285.91°)
OKLaboklab(42.84% -0.011 -0.1092)
OKLCHoklch(42.84% 0.11 264.3)
XYZxyz(8.4619, 7.6606, 25.4538)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C8B #8B6F30
analogous
#307A8B #304C8B #41308B
triadic
#304C8B #8B304C #4C8B30
tetradic
#304C8B #8B307A #8B6F30 #308B41
square
#304C8B #8B307A #8B6F30 #308B41
split-complementary
#304C8B #8B4130 #7A8B30
monochromatic
#111A30 #20335E #304C8B #4065B8 #6A88CC

Accessibility & contrast

On white

8.29
#304C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304C8B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C8B#FFFFFF#000000##FFFFFF
##304C8B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538D
Deuteranopia (green-blind)
#204A8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304c8b;
/* rgb */ color: rgb(48, 76, 139);
/* oklch */ color: oklch(42.8% 0.110 264.3);
Tailwind
colors: {
  custom: {
    50: '#727dad',
    500: '#304c8b',
    950: '#000000',
  },
}
SCSS
$custom: #304c8b;
$custom-light: #727dad;
$custom-dark: #000000;
JSON
{
  "hex": "#304c8b",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 221.538,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.10977,
    "h": 264.3
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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