#5258D4#5258D4

#5258D4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.7% C 0.187 H 275.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5258D4
RGBrgb(82, 88, 212)
HSLhsl(237, 60%, 58%)
HSVhsv(237, 61%, 83%)
CMYKcmyk(61.3%, 58.5%, 0%, 16.9%)
CIE-LABlab(43.54, 34.92, -64.78)
CIE-LCHlch(43.54, 73.59, 298.33°)
OKLaboklab(52.73% 0.0189 -0.1862)
OKLCHoklch(52.73% 0.187 275.8)
XYZxyz(18.8492, 13.5253, 63.8919)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258D4 #D4CE52
analogous
#5299D4 #5258D4 #8D52D4
triadic
#5258D4 #D45258 #58D452
tetradic
#5258D4 #D45299 #D4CE52 #52D48D
square
#5258D4 #D45299 #D4CE52 #52D48D
split-complementary
#5258D4 #D48D52 #99D452
monochromatic
#222789 #2E35BA #5258D4 #8387E0 #B4B7EC

Accessibility & contrast

On white

5.67
#5258D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5258D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258D4
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258D4#FFFFFF#000000##FFFFFF
##5258D41.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#00768D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5258d4;
/* rgb */ color: rgb(82, 88, 212);
/* oklch */ color: oklch(52.7% 0.187 275.8);
Tailwind
colors: {
  custom: {
    50: '#8f87e2',
    500: '#5258d4',
    950: '#000000',
  },
}
SCSS
$custom: #5258d4;
$custom-light: #8f87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5258d4",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 212
  },
  "hsl": {
    "h": 237.231,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52729,
    "c": 0.18721,
    "h": 275.8
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#5258D4
secondary
#DBD9A7
accent
#DC44E3
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5258D4

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

Preview Lab → · Contrast checker → · Palette generator →

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