#5134BF#5134BF

#5134BF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.2% C 0.203 H 284.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5134BF
RGBrgb(81, 52, 191)
HSLhsl(253, 57%, 48%)
HSVhsv(253, 73%, 75%)
CMYKcmyk(57.6%, 72.8%, 0%, 25.1%)
CIE-LABlab(33.91, 49.06, -68.33)
CIE-LCHlch(33.91, 84.12, 305.68°)
OKLaboklab(45.18% 0.0503 -0.1968)
OKLCHoklch(45.18% 0.203 284.4)
XYZxyz(14.0224, 7.9660, 50.0788)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134BF #A2BF34
analogous
#345CBF #5134BF #9734BF
triadic
#5134BF #BF5134 #34BF51
tetradic
#5134BF #BF345C #A2BF34 #34BF97
square
#5134BF #BF345C #A2BF34 #34BF97
split-complementary
#5134BF #BF9734 #5CBF34
monochromatic
#281A5F #3D278F #5134BF #765DD3 #9F8DE0

Accessibility & contrast

On white

8.10
#5134BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5134BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134BF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134BF#FFFFFF#000000##FFFFFF
##5134BF1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#155A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5134bf;
/* rgb */ color: rgb(81, 52, 191);
/* oklch */ color: oklch(45.2% 0.203 284.4);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5134bf',
    950: '#000000',
  },
}
SCSS
$custom: #5134bf;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5134bf",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 252.518,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.20311,
    "h": 284.4
  },
  "luminance": 0.07967
}

Semantic roles & 50–950 ramp

primary
#5134BF
secondary
#BCCA84
accent
#E047C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5134BF

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

Preview Lab → · Contrast checker → · Palette generator →

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