#5258CD#5258CD

#5258CD is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.2% C 0.178 H 276.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5258CD
RGBrgb(82, 88, 205)
HSLhsl(237, 55%, 56%)
HSVhsv(237, 60%, 80%)
CMYKcmyk(60%, 57.1%, 0%, 19.6%)
CIE-LABlab(43.03, 32.60, -61.59)
CIE-LCHlch(43.03, 69.68, 297.90°)
OKLaboklab(52.19% 0.0189 -0.1769)
OKLCHoklch(52.19% 0.178 276.1)
XYZxyz(17.9853, 13.1797, 59.3419)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258CD #CDC752
analogous
#5296CD #5258CD #8A52CD
triadic
#5258CD #CD5258 #58CD52
tetradic
#5258CD #CD5296 #CDC752 #52CD8A
square
#5258CD #CD5296 #CDC752 #52CD8A
split-complementary
#5258CD #CD8A52 #96CD52
monochromatic
#252980 #3339AF #5258CD #8186DB #B1B4E8

Accessibility & contrast

On white

5.78
#5258CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5258CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258CD
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258CD#FFFFFF#000000##FFFFFF
##5258CD1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5258cd;
/* rgb */ color: rgb(82, 88, 205);
/* oklch */ color: oklch(52.2% 0.178 276.1);
Tailwind
colors: {
  custom: {
    50: '#8e87dd',
    500: '#5258cd',
    950: '#000000',
  },
}
SCSS
$custom: #5258cd;
$custom-light: #8e87dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5258cd",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 237.073,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52188,
    "c": 0.17788,
    "h": 276.1
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#5258CD
secondary
#D7D4A4
accent
#D749DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5258CD

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

Preview Lab → · Contrast checker → · Palette generator →

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