#5258D6#5258D6

#5258D6 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.190 H 275.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5258D6
RGBrgb(82, 88, 214)
HSLhsl(237, 62%, 58%)
HSVhsv(237, 62%, 84%)
CMYKcmyk(61.7%, 58.9%, 0%, 16.1%)
CIE-LABlab(43.69, 35.58, -65.68)
CIE-LCHlch(43.69, 74.70, 298.45°)
OKLaboklab(52.89% 0.0189 -0.1889)
OKLCHoklch(52.89% 0.19 275.7)
XYZxyz(19.1030, 13.6268, 65.2288)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258D6 #D6D052
analogous
#529AD6 #5258D6 #8E52D6
triadic
#5258D6 #D65258 #58D652
tetradic
#5258D6 #D6529A #D6D052 #52D68E
square
#5258D6 #D6529A #D6D052 #52D68E
split-complementary
#5258D6 #D68E52 #9AD652
monochromatic
#21268C #2D34BE #5258D6 #8388E2 #B5B8ED

Accessibility & contrast

On white

5.64
#5258D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5258D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258D6
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258D6#FFFFFF#000000##FFFFFF
##5258D61.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#0062D3
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5258d6;
/* rgb */ color: rgb(82, 88, 214);
/* oklch */ color: oklch(52.9% 0.190 275.7);
Tailwind
colors: {
  custom: {
    50: '#9087e4',
    500: '#5258d6',
    950: '#000000',
  },
}
SCSS
$custom: #5258d6;
$custom-light: #9087e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5258d6",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 214
  },
  "hsl": {
    "h": 237.273,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52886,
    "c": 0.18985,
    "h": 275.7
  },
  "luminance": 0.13628
}

Semantic roles & 50–950 ramp

primary
#5258D6
secondary
#DCDAA8
accent
#DD43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5258D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5258D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva