#5258C8#5258C8

#5258C8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.171 H 276.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5258C8
RGBrgb(82, 88, 200)
HSLhsl(237, 52%, 55%)
HSVhsv(237, 59%, 78%)
CMYKcmyk(59%, 56%, 0%, 21.6%)
CIE-LABlab(42.68, 30.95, -59.28)
CIE-LCHlch(42.68, 66.87, 297.57°)
OKLaboklab(51.81% 0.0189 -0.1701)
OKLCHoklch(51.81% 0.171 276.3)
XYZxyz(17.3914, 12.9421, 56.2140)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258C8 #C8C252
analogous
#5293C8 #5258C8 #8752C8
triadic
#5258C8 #C85258 #58C852
tetradic
#5258C8 #C85293 #C8C252 #52C887
square
#5258C8 #C85293 #C8C252 #52C887
split-complementary
#5258C8 #C88752 #93C852
monochromatic
#272B79 #353BA8 #5258C8 #8085D7 #AFB2E6

Accessibility & contrast

On white

5.85
#5258C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5258C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258C8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258C8#FFFFFF#000000##FFFFFF
##5258C81.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5258c8;
/* rgb */ color: rgb(82, 88, 200);
/* oklch */ color: oklch(51.8% 0.171 276.3);
Tailwind
colors: {
  custom: {
    50: '#8d87d9',
    500: '#5258c8',
    950: '#000000',
  },
}
SCSS
$custom: #5258c8;
$custom-light: #8d87d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5258c8",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 236.949,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.17112,
    "h": 276.3
  },
  "luminance": 0.12943
}

Semantic roles & 50–950 ramp

primary
#5258C8
secondary
#D4D1A2
accent
#D44DDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5258C8

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

Preview Lab → · Contrast checker → · Palette generator →

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