#5258E4#5258E4

#5258E4 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.0% C 0.208 H 275.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5258E4
RGBrgb(82, 88, 228)
HSLhsl(238, 73%, 61%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64%, 61.4%, 0%, 10.6%)
CIE-LABlab(44.76, 40.21, -71.91)
CIE-LCHlch(44.76, 82.39, 299.21°)
OKLaboklab(54.01% 0.0185 -0.2072)
OKLCHoklch(54.01% 0.208 275.1)
XYZxyz(20.9684, 14.3729, 75.0530)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258E4 #E4DE52
analogous
#52A1E4 #5258E4 #9552E4
triadic
#5258E4 #E45258 #58E452
tetradic
#5258E4 #E452A1 #E4DE52 #52E495
square
#5258E4 #E452A1 #E4DE52 #52E495
split-complementary
#5258E4 #E49552 #A1E452
monochromatic
#191FA2 #2229D7 #5258E4 #878BEC #BCBEF5

Accessibility & contrast

On white

5.42
#5258E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5258E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258E4
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258E4#FFFFFF#000000##FFFFFF
##5258E41.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0063E1
Tritanopia (blue-blind)
#007B96
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5258e4;
/* rgb */ color: rgb(82, 88, 228);
/* oklch */ color: oklch(54.0% 0.208 275.1);
Tailwind
colors: {
  custom: {
    50: '#9287ee',
    500: '#5258e4',
    950: '#000000',
  },
}
SCSS
$custom: #5258e4;
$custom-light: #9287ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5258e4",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 237.534,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5401,
    "c": 0.20802,
    "h": 275.1
  },
  "luminance": 0.14375
}

Semantic roles & 50–950 ramp

primary
#5258E4
secondary
#E5E2AD
accent
#CD10D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5258E4

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

Preview Lab → · Contrast checker → · Palette generator →

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