#5234BE#5234BE

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

Color values

HEX#5234BE
RGBrgb(82, 52, 190)
HSLhsl(253, 57%, 47%)
HSVhsv(253, 73%, 75%)
CMYKcmyk(56.8%, 72.6%, 0%, 25.5%)
CIE-LABlab(33.91, 48.91, -67.73)
CIE-LCHlch(33.91, 83.54, 305.83°)
OKLaboklab(45.18% 0.052 -0.195)
OKLCHoklch(45.18% 0.202 284.9)
XYZxyz(13.9991, 7.9667, 49.5053)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234BE #A0BE34
analogous
#345BBE #5234BE #9734BE
triadic
#5234BE #BE5234 #34BE52
tetradic
#5234BE #BE345B #A0BE34 #34BE97
square
#5234BE #BE345B #A0BE34 #34BE97
split-complementary
#5234BE #BE9734 #5BBE34
monochromatic
#291A5E #3D278E #5234BE #765DD3 #9F8DE0

Accessibility & contrast

On white

8.10
#5234BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5234BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234BE
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234BE#FFFFFF#000000##FFFFFF
##5234BE1.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)
#0054C2
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#1B5A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5234be;
/* rgb */ color: rgb(82, 52, 190);
/* oklch */ color: oklch(45.2% 0.202 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5234be',
    950: '#000000',
  },
}
SCSS
$custom: #5234be;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5234be",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 253.043,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4518,
    "c": 0.20181,
    "h": 284.9
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#5234BE
secondary
#BBCA84
accent
#E048BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5234BE

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

Preview Lab → · Contrast checker → · Palette generator →

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