#5155CA#5155CA

#5155CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.3% C 0.178 H 276.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5155CA
RGBrgb(81, 85, 202)
HSLhsl(238, 53%, 55%)
HSVhsv(238, 60%, 79%)
CMYKcmyk(59.9%, 57.9%, 0%, 20.8%)
CIE-LABlab(42.01, 33.29, -61.51)
CIE-LCHlch(42.01, 69.94, 298.43°)
OKLaboklab(51.35% 0.0206 -0.1767)
OKLCHoklch(51.35% 0.178 276.6)
XYZxyz(17.2991, 12.5093, 57.3686)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155CA #CAC651
analogous
#5191CA #5155CA #8A51CA
triadic
#5155CA #CA5155 #55CA51
tetradic
#5155CA #CA5191 #CAC651 #51CA8A
square
#5155CA #CA5191 #CAC651 #51CA8A
split-complementary
#5155CA #CA8A51 #91CA51
monochromatic
#25287B #3438AA #5155CA #8083D8 #AFB1E7

Accessibility & contrast

On white

6.00
#5155CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5155CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155CA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155CA#FFFFFF#000000##FFFFFF
##5155CA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5155ca;
/* rgb */ color: rgb(81, 85, 202);
/* oklch */ color: oklch(51.3% 0.178 276.6);
Tailwind
colors: {
  custom: {
    50: '#8d85db',
    500: '#5155ca',
    950: '#000000',
  },
}
SCSS
$custom: #5155ca;
$custom-light: #8d85db;
$custom-dark: #000000;
JSON
{
  "hex": "#5155ca",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 238.017,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51346,
    "c": 0.1779,
    "h": 276.6
  },
  "luminance": 0.12511
}

Semantic roles & 50–950 ramp

primary
#5155CA
secondary
#D5D3A2
accent
#D84BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5155CA

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

Preview Lab → · Contrast checker → · Palette generator →

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