#304D8B#304D8B

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

Color values

HEX#304D8B
RGBrgb(48, 77, 139)
HSLhsl(221, 49%, 37%)
HSVhsv(221, 65%, 55%)
CMYKcmyk(65.5%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.56, 10.24, -37.79)
CIE-LCHlch(33.56, 39.15, 285.17°)
OKLaboklab(43.07% -0.0121 -0.1078)
OKLCHoklch(43.07% 0.108 263.6)
XYZxyz(8.5314, 7.7994, 25.4769)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D8B #8B6E30
analogous
#307B8B #304D8B #41308B
triadic
#304D8B #8B304D #4D8B30
tetradic
#304D8B #8B307B #8B6E30 #308B41
square
#304D8B #8B307B #8B6E30 #308B41
split-complementary
#304D8B #8B4130 #7B8B30
monochromatic
#111B30 #20345E #304D8B #4066B8 #6A89CC

Accessibility & contrast

On white

8.20
#304D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304D8B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D8B#FFFFFF#000000##FFFFFF
##304D8B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#224B8A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304d8b;
/* rgb */ color: rgb(48, 77, 139);
/* oklch */ color: oklch(43.1% 0.108 263.6);
Tailwind
colors: {
  custom: {
    50: '#727ead',
    500: '#304d8b',
    950: '#000000',
  },
}
SCSS
$custom: #304d8b;
$custom-light: #727ead;
$custom-dark: #000000;
JSON
{
  "hex": "#304d8b",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 220.879,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43068,
    "c": 0.10849,
    "h": 263.6
  },
  "luminance": 0.078
}

Semantic roles & 50–950 ramp

primary
#304D8B
secondary
#B39A64
accent
#AD50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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