#5451C2#5451C2

#5451C2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.172 H 279.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5451C2
RGBrgb(84, 81, 194)
HSLhsl(242, 48%, 54%)
HSVhsv(242, 58%, 76%)
CMYKcmyk(56.7%, 58.2%, 0%, 23.9%)
CIE-LABlab(40.68, 33.69, -59.03)
CIE-LCHlch(40.68, 67.97, 299.71°)
OKLaboklab(50.23% 0.0281 -0.1694)
OKLCHoklch(50.23% 0.172 279.4)
XYZxyz(16.3331, 11.6636, 52.4191)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5451C2 #BFC251
analogous
#5187C2 #5451C2 #8D51C2
triadic
#5451C2 #C25451 #51C254
tetradic
#5451C2 #C25187 #BFC251 #51C28D
square
#5451C2 #C25187 #BFC251 #51C28D
split-complementary
#5451C2 #C28D51 #87C251
monochromatic
#2A2871 #3A379E #5451C2 #817ED2 #ADACE2

Accessibility & contrast

On white

6.30
#5451C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5451C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5451C2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5451C2#FFFFFF#000000##FFFFFF
##5451C21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#176C81
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5451c2;
/* rgb */ color: rgb(84, 81, 194);
/* oklch */ color: oklch(50.2% 0.172 279.4);
Tailwind
colors: {
  custom: {
    50: '#8e82d5',
    500: '#5451c2',
    950: '#000000',
  },
}
SCSS
$custom: #5451c2;
$custom-light: #8e82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5451c2",
  "rgb": {
    "r": 84,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 241.593,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50226,
    "c": 0.17168,
    "h": 279.4
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#5451C2
secondary
#CED09F
accent
#D850D4
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5451C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5451C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva