#5152F2#5152F2

#5152F2 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.2% C 0.233 H 275.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5152F2
RGBrgb(81, 82, 242)
HSLhsl(240, 86%, 63%)
HSVhsv(240, 67%, 95%)
CMYKcmyk(66.5%, 66.1%, 0%, 5.1%)
CIE-LABlab(44.51, 48.18, -80.22)
CIE-LCHlch(44.51, 93.58, 300.99°)
OKLaboklab(54.16% 0.0207 -0.2316)
OKLCHoklch(54.16% 0.233 275.1)
XYZxyz(22.4324, 14.1927, 85.5445)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152F2 #F2F151
analogous
#51A3F2 #5152F2 #A051F2
triadic
#5152F2 #F25152 #52F251
tetradic
#5152F2 #F251A3 #F2F151 #51F2A0
square
#5152F2 #F251A3 #F2F151 #51F2A0
split-complementary
#5152F2 #F2A051 #A3F251
monochromatic
#0E0FBB #1819EE #5152F2 #8A8BF6 #C3C3FB

Accessibility & contrast

On white

5.47
#5152F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5152F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152F2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152F2#FFFFFF#000000##FFFFFF
##5152F21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F7
Deuteranopia (green-blind)
#0062EF
Tritanopia (blue-blind)
#007C9B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5152f2;
/* rgb */ color: rgb(81, 82, 242);
/* oklch */ color: oklch(54.2% 0.233 275.1);
Tailwind
colors: {
  custom: {
    50: '#9583f8',
    500: '#5152f2',
    950: '#000000',
  },
}
SCSS
$custom: #5152f2;
$custom-light: #9583f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5152f2",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 239.627,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54161,
    "c": 0.23256,
    "h": 275.1
  },
  "luminance": 0.14195
}

Semantic roles & 50–950 ramp

primary
#5152F2
secondary
#ECECB3
accent
#E103E3
background
#FAF8FF
surface
#F3EFFF
border
#CDCAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5152F2

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

Preview Lab → · Contrast checker → · Palette generator →

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