#5235EA#5235EA

#5235EA is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.6% C 0.251 H 279.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5235EA
RGBrgb(82, 53, 234)
HSLhsl(250, 81%, 56%)
HSVhsv(250, 77%, 92%)
CMYKcmyk(65%, 77.4%, 0%, 8.2%)
CIE-LABlab(38.34, 61.18, -85.86)
CIE-LCHlch(38.34, 105.43, 305.47°)
OKLaboklab(49.57% 0.0405 -0.2479)
OKLCHoklch(49.57% 0.251 279.3)
XYZxyz(19.5993, 10.2789, 78.7771)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235EA #CDEA35
analogous
#3573EA #5235EA #AD35EA
triadic
#5235EA #EA5235 #35EA52
tetradic
#5235EA #EA3573 #CDEA35 #35EAAD
square
#5235EA #EA3573 #CDEA35 #35EAAD
split-complementary
#5235EA #EAAD35 #73EA35
monochromatic
#251095 #3315CD #5235EA #816CF0 #B1A4F6

Accessibility & contrast

On white

6.87
#5235EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5235EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5235EA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235EA#FFFFFF#000000##FFFFFF
##5235EA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061EF
Deuteranopia (green-blind)
#0053E7
Tritanopia (blue-blind)
#006B8F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5235ea;
/* rgb */ color: rgb(82, 53, 234);
/* oklch */ color: oklch(49.6% 0.251 279.3);
Tailwind
colors: {
  custom: {
    50: '#9671f2',
    500: '#5235ea',
    950: '#000000',
  },
}
SCSS
$custom: #5235ea;
$custom-light: #9671f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5235ea",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 234
  },
  "hsl": {
    "h": 249.613,
    "s": 81.166,
    "l": 56.275
  },
  "oklch": {
    "l": 0.49565,
    "c": 0.25122,
    "h": 279.3
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#5235EA
secondary
#D7E398
accent
#F830D8
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5235EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5235EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva