#5872DF#5872DF

#5872DF is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.168 H 270.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5872DF
RGBrgb(88, 114, 223)
HSLhsl(228, 68%, 61%)
HSVhsv(228, 61%, 87%)
CMYKcmyk(60.5%, 48.9%, 0%, 12.5%)
CIE-LABlab(51.19, 23.56, -58.65)
CIE-LCHlch(51.19, 63.20, 291.88°)
OKLaboklab(58.8% 0.0012 -0.1678)
OKLCHoklch(58.8% 0.168 270.4)
XYZxyz(23.3566, 19.4351, 72.3182)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872DF #DFC558
analogous
#58B6DF #5872DF #8158DF
triadic
#5872DF #DF5872 #72DF58
tetradic
#5872DF #DF58B6 #DFC558 #58DF81
square
#5872DF #DF58B6 #DFC558 #58DF81
split-complementary
#5872DF #DF8158 #B6DF58
monochromatic
#1E379E #2849D2 #5872DF #8B9DE9 #BFC9F3

Accessibility & contrast

On white

4.30
#5872DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#5872DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872DF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872DF#FFFFFF#000000##000000
##5872DF1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3980E3
Deuteranopia (green-blind)
#1D74DD
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5872df;
/* rgb */ color: rgb(88, 114, 223);
/* oklch */ color: oklch(58.8% 0.168 270.4);
Tailwind
colors: {
  custom: {
    50: '#939aea',
    500: '#5872df',
    950: '#000000',
  },
}
SCSS
$custom: #5872df;
$custom-light: #939aea;
$custom-dark: #000000;
JSON
{
  "hex": "#5872df",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 228.444,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58799,
    "c": 0.16781,
    "h": 270.4
  },
  "luminance": 0.19437
}

Semantic roles & 50–950 ramp

primary
#5872DF
secondary
#E3D9B0
accent
#AC16D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5872DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5872DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva