#5159F2#5159F2

#5159F2 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.3% C 0.225 H 274.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5159F2
RGBrgb(81, 89, 242)
HSLhsl(237, 86%, 63%)
HSVhsv(237, 67%, 95%)
CMYKcmyk(66.5%, 63.2%, 0%, 5.1%)
CIE-LABlab(46.05, 44.08, -77.70)
CIE-LCHlch(46.05, 89.34, 299.57°)
OKLaboklab(55.28% 0.0158 -0.2242)
OKLCHoklch(55.28% 0.225 274)
XYZxyz(22.9874, 15.3028, 85.7295)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159F2 #F2EA51
analogous
#51A9F2 #5159F2 #9A51F2
triadic
#5159F2 #F25159 #59F251
tetradic
#5159F2 #F251A9 #F2EA51 #51F29A
square
#5159F2 #F251A9 #F2EA51 #51F29A
split-complementary
#5159F2 #F29A51 #A9F251
monochromatic
#0E17BB #1823EE #5159F2 #8A8FF6 #C3C6FB

Accessibility & contrast

On white

5.17
#5159F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5159F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159F2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159F2#FFFFFF#000000##FFFFFF
##5159F21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#0066EF
Tritanopia (blue-blind)
#00809D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5159f2;
/* rgb */ color: rgb(81, 89, 242);
/* oklch */ color: oklch(55.3% 0.225 274.0);
Tailwind
colors: {
  custom: {
    50: '#9488f7',
    500: '#5159f2',
    950: '#000000',
  },
}
SCSS
$custom: #5159f2;
$custom-light: #9488f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5159f2",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 242
  },
  "hsl": {
    "h": 237.019,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.22479,
    "h": 274
  },
  "luminance": 0.15305
}

Semantic roles & 50–950 ramp

primary
#5159F2
secondary
#ECE9B3
accent
#D703E3
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5159F2

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

Preview Lab → · Contrast checker → · Palette generator →

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