#5258CC#5258CC

#5258CC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.1% C 0.177 H 276.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5258CC
RGBrgb(82, 88, 204)
HSLhsl(237, 54%, 56%)
HSVhsv(237, 60%, 80%)
CMYKcmyk(59.8%, 56.9%, 0%, 20%)
CIE-LABlab(42.96, 32.27, -61.13)
CIE-LCHlch(42.96, 69.12, 297.83°)
OKLaboklab(52.11% 0.0189 -0.1755)
OKLCHoklch(52.11% 0.177 276.2)
XYZxyz(17.8650, 13.1316, 58.7083)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258CC #CCC652
analogous
#5295CC #5258CC #8952CC
triadic
#5258CC #CC5258 #58CC52
tetradic
#5258CC #CC5295 #CCC652 #52CC89
square
#5258CC #CC5295 #CCC652 #52CC89
split-complementary
#5258CC #CC8952 #95CC52
monochromatic
#252A7E #3339AE #5258CC #8186DA #B1B3E8

Accessibility & contrast

On white

5.79
#5258CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5258CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258CC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258CC#FFFFFF#000000##FFFFFF
##5258CC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5258cc;
/* rgb */ color: rgb(82, 88, 204);
/* oklch */ color: oklch(52.1% 0.177 276.2);
Tailwind
colors: {
  custom: {
    50: '#8e87dc',
    500: '#5258cc',
    950: '#000000',
  },
}
SCSS
$custom: #5258cc;
$custom-light: #8e87dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5258cc",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 237.049,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52112,
    "c": 0.17654,
    "h": 276.2
  },
  "luminance": 0.13133
}

Semantic roles & 50–950 ramp

primary
#5258CC
secondary
#D6D4A4
accent
#D74ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5258CC

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

Preview Lab → · Contrast checker → · Palette generator →

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