#5258F8#5258F8

#5258F8 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.7% C 0.233 H 274.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5258F8
RGBrgb(82, 88, 248)
HSLhsl(238, 92%, 65%)
HSVhsv(238, 67%, 97%)
CMYKcmyk(66.9%, 64.5%, 0%, 2.7%)
CIE-LABlab(46.38, 46.76, -80.52)
CIE-LCHlch(46.38, 93.11, 300.14°)
OKLaboklab(55.69% 0.0171 -0.2325)
OKLCHoklch(55.69% 0.233 274.2)
XYZxyz(23.9071, 15.5484, 90.5300)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258F8 #F8F252
analogous
#52ABF8 #5258F8 #9F52F8
triadic
#5258F8 #F85258 #58F852
tetradic
#5258F8 #F852AB #F8F252 #52F89F
square
#5258F8 #F852AB #F8F252 #52F89F
split-complementary
#5258F8 #F89F52 #ABF852
monochromatic
#080FC8 #171FF6 #5258F8 #8D91FA #C8CAFD

Accessibility & contrast

On white

5.11
#5258F8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5258F8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258F8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258F8#FFFFFF#000000##FFFFFF
##5258F81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FD
Deuteranopia (green-blind)
#0066F5
Tritanopia (blue-blind)
#0082A0
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5258f8;
/* rgb */ color: rgb(82, 88, 248);
/* oklch */ color: oklch(55.7% 0.233 274.2);
Tailwind
colors: {
  custom: {
    50: '#9688fc',
    500: '#5258f8',
    950: '#000000',
  },
}
SCSS
$custom: #5258f8;
$custom-light: #9688fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5258f8",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 248
  },
  "hsl": {
    "h": 237.831,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.55689,
    "c": 0.23309,
    "h": 274.2
  },
  "luminance": 0.15551
}

Semantic roles & 50–950 ramp

primary
#5258F8
secondary
#EFEDB6
accent
#DD00E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5258F8

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

Preview Lab → · Contrast checker → · Palette generator →

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