#5258D3#5258D3

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

Color values

HEX#5258D3
RGBrgb(82, 88, 211)
HSLhsl(237, 59%, 57%)
HSVhsv(237, 61%, 83%)
CMYKcmyk(61.1%, 58.3%, 0%, 17.3%)
CIE-LABlab(43.47, 34.59, -64.32)
CIE-LCHlch(43.47, 73.03, 298.27°)
OKLaboklab(52.65% 0.0189 -0.1849)
OKLCHoklch(52.65% 0.186 275.8)
XYZxyz(18.7234, 13.4750, 63.2296)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258D3 #D3CD52
analogous
#5299D3 #5258D3 #8C52D3
triadic
#5258D3 #D35258 #58D352
tetradic
#5258D3 #D35299 #D3CD52 #52D38C
square
#5258D3 #D35299 #D3CD52 #52D38C
split-complementary
#5258D3 #D38C52 #99D352
monochromatic
#232788 #2F35B9 #5258D3 #8387DF #B4B6EC

Accessibility & contrast

On white

5.68
#5258D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5258D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258D3
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258D3#FFFFFF#000000##FFFFFF
##5258D31.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5258d3;
/* rgb */ color: rgb(82, 88, 211);
/* oklch */ color: oklch(52.7% 0.186 275.8);
Tailwind
colors: {
  custom: {
    50: '#8f87e1',
    500: '#5258d3',
    950: '#000000',
  },
}
SCSS
$custom: #5258d3;
$custom-light: #8f87e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5258d3",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 211
  },
  "hsl": {
    "h": 237.209,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52651,
    "c": 0.18589,
    "h": 275.8
  },
  "luminance": 0.13476
}

Semantic roles & 50–950 ramp

primary
#5258D3
secondary
#DAD8A6
accent
#DB45E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5258D3

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

Preview Lab → · Contrast checker → · Palette generator →

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