#474271#474271

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

Color values

HEX#474271
RGBrgb(71, 66, 113)
HSLhsl(246, 26%, 35%)
HSVhsv(246, 42%, 44%)
CMYKcmyk(37.2%, 41.6%, 0%, 55.7%)
CIE-LABlab(30.47, 14.42, -26.43)
CIE-LCHlch(30.47, 30.11, 298.61°)
OKLaboklab(40.62% 0.0231 -0.0742)
OKLCHoklch(40.62% 0.078 287.3)
XYZxyz(7.5266, 6.4281, 16.4638)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#474271 #6C7142
analogous
#425471 #474271 #5E4271
triadic
#474271 #714742 #427147
tetradic
#474271 #714254 #6C7142 #42715E
square
#474271 #714254 #6C7142 #42715E
split-complementary
#474271 #715E42 #547142
monochromatic
#161524 #2F2B4A #474271 #5F5998 #817BB2

Accessibility & contrast

On white

9.19
#474271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#474271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #474271
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##474271#FFFFFF#000000##FFFFFF
##4742711.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#324670
Tritanopia (blue-blind)
#3C4B54
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #474271;
/* rgb */ color: rgb(71, 66, 113);
/* oklch */ color: oklch(40.6% 0.078 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c769a',
    500: '#474271',
    950: '#000000',
  },
}
SCSS
$custom: #474271;
$custom-light: #7c769a;
$custom-dark: #000000;
JSON
{
  "hex": "#474271",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 246.383,
    "s": 26.257,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40621,
    "c": 0.07767,
    "h": 287.3
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#474271
secondary
#999D71
accent
#C365B9
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #474271

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

Preview Lab → · Contrast checker → · Palette generator →

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