#304A8D#304A8D

#304A8D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.5% C 0.115 H 265.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#304A8D
RGBrgb(48, 74, 141)
HSLhsl(223, 49%, 37%)
HSVhsv(223, 66%, 55%)
CMYKcmyk(66%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.81, 12.99, -40.23)
CIE-LCHlch(32.81, 42.27, 287.90°)
OKLaboklab(42.53% -0.0085 -0.115)
OKLCHoklch(42.53% 0.115 265.8)
XYZxyz(8.4738, 7.4482, 26.1852)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A8D #8D7330
analogous
#30798D #304A8D #45308D
triadic
#304A8D #8D304A #4A8D30
tetradic
#304A8D #8D3079 #8D7330 #308D45
square
#304A8D #8D3079 #8D7330 #308D45
split-complementary
#304A8D #8D4530 #798D30
monochromatic
#111A32 #20325F #304A8D #4062BB #6B86CD

Accessibility & contrast

On white

8.43
#304A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#304A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A8D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A8D#FFFFFF#000000##FFFFFF
##304A8D1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295290
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304a8d;
/* rgb */ color: rgb(48, 74, 141);
/* oklch */ color: oklch(42.5% 0.115 265.8);
Tailwind
colors: {
  custom: {
    50: '#727caf',
    500: '#304a8d',
    950: '#000000',
  },
}
SCSS
$custom: #304a8d;
$custom-light: #727caf;
$custom-dark: #000000;
JSON
{
  "hex": "#304a8d",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 223.226,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.11533,
    "h": 265.8
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#304A8D
secondary
#B49E65
accent
#B24FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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