#5134BE#5134BE

#5134BE is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.202 H 284.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5134BE
RGBrgb(81, 52, 190)
HSLhsl(253, 57%, 47%)
HSVhsv(253, 73%, 75%)
CMYKcmyk(57.4%, 72.6%, 0%, 25.5%)
CIE-LABlab(33.82, 48.77, -67.89)
CIE-LCHlch(33.82, 83.59, 305.69°)
OKLaboklab(45.09% 0.0506 -0.1955)
OKLCHoklch(45.09% 0.202 284.5)
XYZxyz(13.9128, 7.9222, 49.5012)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134BE #A1BE34
analogous
#345CBE #5134BE #9634BE
triadic
#5134BE #BE5134 #34BE51
tetradic
#5134BE #BE345C #A1BE34 #34BE96
square
#5134BE #BE345C #A1BE34 #34BE96
split-complementary
#5134BE #BE9634 #5CBE34
monochromatic
#281A5E #3D278E #5134BE #755DD3 #9E8DE0

Accessibility & contrast

On white

8.13
#5134BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5134BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134BE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134BE#FFFFFF#000000##FFFFFF
##5134BE1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#175A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5134be;
/* rgb */ color: rgb(81, 52, 190);
/* oklch */ color: oklch(45.1% 0.202 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e6ed3',
    500: '#5134be',
    950: '#000000',
  },
}
SCSS
$custom: #5134be;
$custom-light: #8e6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5134be",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 252.609,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45092,
    "c": 0.20192,
    "h": 284.5
  },
  "luminance": 0.07923
}

Semantic roles & 50–950 ramp

primary
#5134BE
secondary
#BBCA84
accent
#E048C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5134BE

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

Preview Lab → · Contrast checker → · Palette generator →

#5134BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva