#5E87F2#5E87F2

#5E87F2 is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.6% C 0.166 H 266.1°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5E87F2
RGBrgb(94, 135, 242)
HSLhsl(223, 85%, 66%)
HSVhsv(223, 61%, 95%)
CMYKcmyk(61.2%, 44.2%, 0%, 5.1%)
CIE-LABlab(58.15, 18.17, -58.09)
CIE-LCHlch(58.15, 60.87, 287.37°)
OKLaboklab(64.55% -0.0113 -0.1658)
OKLCHoklch(64.55% 0.166 266.1)
XYZxyz(29.3016, 26.1159, 87.4839)
Luminance0.2612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E87F2 #F2C95E
analogous
#5ED1F2 #5E87F2 #7F5EF2
triadic
#5E87F2 #F25E87 #87F25E
tetradic
#5E87F2 #F25ED1 #F2C95E #5EF27F
square
#5E87F2 #F25ED1 #F2C95E #5EF27F
split-complementary
#5E87F2 #F27F5E #D1F25E
monochromatic
#1042C6 #255DED #5E87F2 #97B1F7 #CFDBFB

Accessibility & contrast

On white

3.37
#5E87F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#5E87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E87F2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E87F2#FFFFFF#000000##000000
##5E87F21.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#3D85F0
Tritanopia (blue-blind)
#009FB1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5e87f2;
/* rgb */ color: rgb(94, 135, 242);
/* oklch */ color: oklch(64.6% 0.166 266.1);
Tailwind
colors: {
  custom: {
    50: '#98a9f7',
    500: '#5e87f2',
    950: '#000000',
  },
}
SCSS
$custom: #5e87f2;
$custom-light: #98a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e87f2",
  "rgb": {
    "r": 94,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 223.378,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64554,
    "c": 0.16617,
    "h": 266.1
  },
  "luminance": 0.26118
}

Semantic roles & 50–950 ramp

primary
#5E87F2
secondary
#EEE1BD
accent
#A404E2
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5E87F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5E87F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva