#5159DF#5159DF

#5159DF is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.7% C 0.201 H 274.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5159DF
RGBrgb(81, 89, 223)
HSLhsl(237, 69%, 60%)
HSVhsv(237, 64%, 87%)
CMYKcmyk(63.7%, 60.1%, 0%, 12.5%)
CIE-LABlab(44.55, 37.80, -69.43)
CIE-LCHlch(44.55, 79.05, 298.57°)
OKLaboklab(53.71% 0.0167 -0.1999)
OKLCHoklch(53.71% 0.201 274.8)
XYZxyz(20.2806, 14.2201, 71.4737)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159DF #DFD751
analogous
#51A0DF #5159DF #9051DF
triadic
#5159DF #DF5159 #59DF51
tetradic
#5159DF #DF51A0 #DFD751 #51DF90
square
#5159DF #DF51A0 #DFD751 #51DF90
split-complementary
#5159DF #DF9051 #A0DF51
monochromatic
#1C2399 #262FCD #5159DF #858AE9 #B8BCF2

Accessibility & contrast

On white

5.46
#5159DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5159DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159DF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159DF#FFFFFF#000000##FFFFFF
##5159DF1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0063DC
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5159df;
/* rgb */ color: rgb(81, 89, 223);
/* oklch */ color: oklch(53.7% 0.201 274.8);
Tailwind
colors: {
  custom: {
    50: '#9188ea',
    500: '#5159df',
    950: '#000000',
  },
}
SCSS
$custom: #5159df;
$custom-light: #9188ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5159df",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 223
  },
  "hsl": {
    "h": 236.62,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.20063,
    "h": 274.8
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

primary
#5159DF
secondary
#E1DEAA
accent
#E23CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159DF

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

Preview Lab → · Contrast checker → · Palette generator →

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