#304571#304571

#304571 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.5% C 0.079 H 263.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#304571
RGBrgb(48, 69, 113)
HSLhsl(221, 40%, 32%)
HSVhsv(221, 58%, 44%)
CMYKcmyk(57.5%, 38.9%, 0%, 55.7%)
CIE-LABlab(29.60, 6.07, -27.91)
CIE-LCHlch(29.60, 28.56, 282.26°)
OKLaboklab(39.51% -0.0086 -0.079)
OKLCHoklch(39.51% 0.079 263.8)
XYZxyz(6.3267, 6.0764, 16.4591)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304571 #715C30
analogous
#306671 #304571 #3C3071
triadic
#304571 #713045 #457130
tetradic
#304571 #713066 #715C30 #30713C
square
#304571 #713066 #715C30 #30713C
split-complementary
#304571 #713C30 #667130
monochromatic
#0C111B #1E2B46 #304571 #425F9C #607EBB

Accessibility & contrast

On white

9.48
#304571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#304571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304571
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304571#FFFFFF#000000##FFFFFF
##3045711.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#0A4F55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304571;
/* rgb */ color: rgb(48, 69, 113);
/* oklch */ color: oklch(39.5% 0.079 263.8);
Tailwind
colors: {
  custom: {
    50: '#6e789a',
    500: '#304571',
    950: '#000000',
  },
}
SCSS
$custom: #304571;
$custom-light: #6e789a;
$custom-dark: #000000;
JSON
{
  "hex": "#304571",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 113
  },
  "hsl": {
    "h": 220.615,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39511,
    "c": 0.07943,
    "h": 263.8
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#304571
secondary
#A28B5B
accent
#A958D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #304571

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

Preview Lab → · Contrast checker → · Palette generator →

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