#5258EF#5258EF

#5258EF is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.9% C 0.222 H 274.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5258EF
RGBrgb(82, 88, 239)
HSLhsl(238, 83%, 63%)
HSVhsv(238, 66%, 94%)
CMYKcmyk(65.7%, 63.2%, 0%, 6.3%)
CIE-LABlab(45.64, 43.82, -76.68)
CIE-LCHlch(45.64, 88.32, 299.75°)
OKLaboklab(54.92% 0.0178 -0.2212)
OKLCHoklch(54.92% 0.222 274.6)
XYZxyz(22.5442, 15.0033, 83.3525)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258EF #EFE952
analogous
#52A6EF #5258EF #9A52EF
triadic
#5258EF #EF5258 #58EF52
tetradic
#5258EF #EF52A6 #EFE952 #52EF9A
square
#5258EF #EF52A6 #EFE952 #52EF9A
split-complementary
#5258EF #EF9A52 #A6EF52
monochromatic
#1117B6 #1A22EA #5258EF #8A8EF4 #C2C4F9

Accessibility & contrast

On white

5.25
#5258EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5258EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258EF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258EF#FFFFFF#000000##FFFFFF
##5258EF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0065EC
Tritanopia (blue-blind)
#007F9C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5258ef;
/* rgb */ color: rgb(82, 88, 239);
/* oklch */ color: oklch(54.9% 0.222 274.6);
Tailwind
colors: {
  custom: {
    50: '#9487f5',
    500: '#5258ef',
    950: '#000000',
  },
}
SCSS
$custom: #5258ef;
$custom-light: #9487f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5258ef",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 237.707,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54923,
    "c": 0.22194,
    "h": 274.6
  },
  "luminance": 0.15005
}

Semantic roles & 50–950 ramp

primary
#5258EF
secondary
#EBE8B2
accent
#D706DF
background
#FAF8FF
surface
#F3EFFF
border
#CDCAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5258EF

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

Preview Lab → · Contrast checker → · Palette generator →

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