#51478F#51478F

#51478F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 44.4% C 0.115 H 287.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#51478F
RGBrgb(81, 71, 143)
HSLhsl(248, 34%, 42%)
HSVhsv(248, 50%, 56%)
CMYKcmyk(43.4%, 50.3%, 0%, 43.9%)
CIE-LABlab(34.47, 23.13, -38.64)
CIE-LCHlch(34.47, 45.04, 300.90°)
OKLaboklab(44.44% 0.0338 -0.1096)
OKLCHoklch(44.44% 0.115 287.1)
XYZxyz(10.6031, 8.2386, 27.0128)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51478F #858F47
analogous
#47618F #51478F #75478F
triadic
#51478F #8F5147 #478F51
tetradic
#51478F #8F4761 #858F47 #478F75
square
#51478F #8F4761 #858F47 #478F75
split-complementary
#51478F #8F7547 #618F47
monochromatic
#231E3D #3A3366 #51478F #6D62B1 #938BC5

Accessibility & contrast

On white

7.93
#51478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#51478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51478F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51478F#FFFFFF#000000##FFFFFF
##51478F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#3F5664
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #51478f;
/* rgb */ color: rgb(81, 71, 143);
/* oklch */ color: oklch(44.4% 0.115 287.1);
Tailwind
colors: {
  custom: {
    50: '#857ab0',
    500: '#51478f',
    950: '#000000',
  },
}
SCSS
$custom: #51478f;
$custom-light: #857ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#51478f",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 248.333,
    "s": 33.645,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44442,
    "c": 0.11466,
    "h": 287.1
  },
  "luminance": 0.08239
}

Semantic roles & 50–950 ramp

primary
#51478F
secondary
#AAB181
accent
#CA5EBB
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #51478F

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

Preview Lab → · Contrast checker → · Palette generator →

#51478F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva