#5258EB#5258EB

#5258EB is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.6% C 0.217 H 274.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5258EB
RGBrgb(82, 88, 235)
HSLhsl(238, 79%, 62%)
HSVhsv(238, 65%, 92%)
CMYKcmyk(65.1%, 62.6%, 0%, 7.8%)
CIE-LABlab(45.32, 42.51, -74.96)
CIE-LCHlch(45.32, 86.17, 299.56°)
OKLaboklab(54.59% 0.0181 -0.2162)
OKLCHoklch(54.59% 0.217 274.8)
XYZxyz(21.9598, 14.7695, 80.2747)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258EB #EBE552
analogous
#52A5EB #5258EB #9952EB
triadic
#5258EB #EB5258 #58EB52
tetradic
#5258EB #EB52A5 #EBE552 #52EB99
square
#5258EB #EB52A5 #EBE552 #52EB99
split-complementary
#5258EB #EB9952 #A5EB52
monochromatic
#141AAE #1B23E5 #5258EB #898DF1 #C0C2F8

Accessibility & contrast

On white

5.31
#5258EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5258EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258EB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258EB#FFFFFF#000000##FFFFFF
##5258EB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5258eb;
/* rgb */ color: rgb(82, 88, 235);
/* oklch */ color: oklch(54.6% 0.217 274.8);
Tailwind
colors: {
  custom: {
    50: '#9387f3',
    500: '#5258eb',
    950: '#000000',
  },
}
SCSS
$custom: #5258eb;
$custom-light: #9387f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5258eb",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 237.647,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54588,
    "c": 0.21691,
    "h": 274.8
  },
  "luminance": 0.14771
}

Semantic roles & 50–950 ramp

primary
#5258EB
secondary
#E8E6B0
accent
#D30ADC
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5258EB

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

Preview Lab → · Contrast checker → · Palette generator →

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