#5156CA#5156CA

#5156CA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.5% C 0.177 H 276.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5156CA
RGBrgb(81, 86, 202)
HSLhsl(238, 53%, 55%)
HSVhsv(238, 60%, 79%)
CMYKcmyk(59.9%, 57.4%, 0%, 20.8%)
CIE-LABlab(42.26, 32.67, -61.11)
CIE-LCHlch(42.26, 69.30, 298.13°)
OKLaboklab(51.53% 0.0197 -0.1755)
OKLCHoklch(51.53% 0.177 276.4)
XYZxyz(17.3783, 12.6679, 57.3950)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156CA #CAC551
analogous
#5192CA #5156CA #8951CA
triadic
#5156CA #CA5156 #56CA51
tetradic
#5156CA #CA5192 #CAC551 #51CA89
square
#5156CA #CA5192 #CAC551 #51CA89
split-complementary
#5156CA #CA8951 #92CA51
monochromatic
#25297B #3439AA #5156CA #8084D8 #AFB1E7

Accessibility & contrast

On white

5.94
#5156CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5156CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156CA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156CA#FFFFFF#000000##FFFFFF
##5156CA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5156ca;
/* rgb */ color: rgb(81, 86, 202);
/* oklch */ color: oklch(51.5% 0.177 276.4);
Tailwind
colors: {
  custom: {
    50: '#8d85db',
    500: '#5156ca',
    950: '#000000',
  },
}
SCSS
$custom: #5156ca;
$custom-light: #8d85db;
$custom-dark: #000000;
JSON
{
  "hex": "#5156ca",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 237.521,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51527,
    "c": 0.17663,
    "h": 276.4
  },
  "luminance": 0.12669
}

Semantic roles & 50–950 ramp

primary
#5156CA
secondary
#D5D3A2
accent
#D74BDD
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5156CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5156CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva