#5234BF#5234BF

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

Color values

HEX#5234BF
RGBrgb(82, 52, 191)
HSLhsl(253, 57%, 48%)
HSVhsv(253, 73%, 75%)
CMYKcmyk(57.1%, 72.8%, 0%, 25.1%)
CIE-LABlab(34.01, 49.20, -68.17)
CIE-LCHlch(34.01, 84.07, 305.82°)
OKLaboklab(45.27% 0.0518 -0.1963)
OKLCHoklch(45.27% 0.203 284.8)
XYZxyz(14.1088, 8.0106, 50.0829)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234BF #A1BF34
analogous
#345BBF #5234BF #9834BF
triadic
#5234BF #BF5234 #34BF52
tetradic
#5234BF #BF345B #A1BF34 #34BF98
square
#5234BF #BF345B #A1BF34 #34BF98
split-complementary
#5234BF #BF9834 #5BBF34
monochromatic
#291A5F #3D278F #5234BF #775DD3 #9F8DE0

Accessibility & contrast

On white

8.07
#5234BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5234BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234BF
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234BF#FFFFFF#000000##FFFFFF
##5234BF1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#1A5A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5234bf;
/* rgb */ color: rgb(82, 52, 191);
/* oklch */ color: oklch(45.3% 0.203 284.8);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5234bf',
    950: '#000000',
  },
}
SCSS
$custom: #5234bf;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5234bf",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 252.95,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.20299,
    "h": 284.8
  },
  "luminance": 0.08011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5234BF

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

Preview Lab → · Contrast checker → · Palette generator →

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