#5138D2#5138D2

#5138D2 is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.5% C 0.221 H 281.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5138D2
RGBrgb(81, 56, 210)
HSLhsl(250, 63%, 52%)
HSVhsv(250, 73%, 82%)
CMYKcmyk(61.4%, 73.3%, 0%, 17.6%)
CIE-LABlab(36.42, 52.61, -75.28)
CIE-LCHlch(36.42, 91.84, 304.95°)
OKLaboklab(47.5% 0.0433 -0.2171)
OKLCHoklch(47.5% 0.221 281.3)
XYZxyz(16.4367, 9.2296, 61.8756)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138D2 #B9D238
analogous
#386CD2 #5138D2 #9E38D2
triadic
#5138D2 #D25138 #38D251
tetradic
#5138D2 #D2386C #B9D238 #38D29E
square
#5138D2 #D2386C #B9D238 #38D29E
split-complementary
#5138D2 #D29E38 #6CD238
monochromatic
#291A75 #3B26A7 #5138D2 #7D6ADD #A89CE9

Accessibility & contrast

On white

7.38
#5138D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5138D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138D2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138D2#FFFFFF#000000##FFFFFF
##5138D21.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5138d2;
/* rgb */ color: rgb(81, 56, 210);
/* oklch */ color: oklch(47.5% 0.221 281.3);
Tailwind
colors: {
  custom: {
    50: '#9172e1',
    500: '#5138d2',
    950: '#000000',
  },
}
SCSS
$custom: #5138d2;
$custom-light: #9172e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5138d2",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 249.74,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47498,
    "c": 0.22138,
    "h": 281.3
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#5138D2
secondary
#CAD591
accent
#E642CB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0815
muted
#7E7B84

Preview Lab

Preview with #5138D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5138D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva