#5231BE#5231BE

#5231BE is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.205 H 285.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5231BE
RGBrgb(82, 49, 190)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(56.8%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.37, 50.45, -68.63)
CIE-LCHlch(33.37, 85.18, 306.32°)
OKLaboklab(44.79% 0.0543 -0.1976)
OKLCHoklch(44.79% 0.205 285.4)
XYZxyz(13.8694, 7.7074, 49.4620)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231BE #9DBE31
analogous
#3156BE #5231BE #9931BE
triadic
#5231BE #BE5231 #31BE52
tetradic
#5231BE #BE3156 #9DBE31 #31BE99
square
#5231BE #BE3156 #9DBE31 #31BE99
split-complementary
#5231BE #BE9931 #56BE31
monochromatic
#28185D #3D248D #5231BE #7558D4 #9D89E1

Accessibility & contrast

On white

8.26
#5231BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5231BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231BE
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231BE#FFFFFF#000000##FFFFFF
##5231BE1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004ABB
Tritanopia (blue-blind)
#1C5875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5231be;
/* rgb */ color: rgb(82, 49, 190);
/* oklch */ color: oklch(44.8% 0.205 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e6dd3',
    500: '#5231be',
    950: '#000000',
  },
}
SCSS
$custom: #5231be;
$custom-light: #8e6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5231be",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 254.043,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44793,
    "c": 0.20493,
    "h": 285.4
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#5231BE
secondary
#B9CA80
accent
#E246BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5231BE

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

Preview Lab → · Contrast checker → · Palette generator →

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