#304772#304772

#304772 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.078 H 262.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#304772
RGBrgb(48, 71, 114)
HSLhsl(219, 41%, 32%)
HSVhsv(219, 58%, 45%)
CMYKcmyk(57.9%, 37.7%, 0%, 55.3%)
CIE-LABlab(30.28, 5.09, -27.48)
CIE-LCHlch(30.28, 27.95, 280.49°)
OKLaboklab(40.05% -0.0108 -0.0777)
OKLCHoklch(40.05% 0.078 262.1)
XYZxyz(6.5084, 6.3493, 16.7989)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304772 #725B30
analogous
#306872 #304772 #3A3072
triadic
#304772 #723047 #477230
tetradic
#304772 #723068 #725B30 #30723A
square
#304772 #723068 #725B30 #30723A
split-complementary
#304772 #723A30 #687230
monochromatic
#0C111C #1E2C47 #304772 #42629D #6080BC

Accessibility & contrast

On white

9.25
#304772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#304772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304772
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304772#FFFFFF#000000##FFFFFF
##3047721.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#2D4471
Tritanopia (blue-blind)
#075057
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304772;
/* rgb */ color: rgb(48, 71, 114);
/* oklch */ color: oklch(40.1% 0.078 262.1);
Tailwind
colors: {
  custom: {
    50: '#6e799b',
    500: '#304772',
    950: '#000000',
  },
}
SCSS
$custom: #304772;
$custom-light: #6e799b;
$custom-dark: #000000;
JSON
{
  "hex": "#304772",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 114
  },
  "hsl": {
    "h": 219.091,
    "s": 40.741,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40051,
    "c": 0.07844,
    "h": 262.1
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#304772
secondary
#A38A5B
accent
#A657D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #304772

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

Preview Lab → · Contrast checker → · Palette generator →

#304772 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva