#5138CF#5138CF

#5138CF is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 47.2% C 0.218 H 281.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5138CF
RGBrgb(81, 56, 207)
HSLhsl(250, 61%, 52%)
HSVhsv(250, 73%, 81%)
CMYKcmyk(60.9%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.14, 51.71, -74.00)
CIE-LCHlch(36.14, 90.28, 304.95°)
OKLaboklab(47.21% 0.0439 -0.2134)
OKLCHoklch(47.21% 0.218 281.6)
XYZxyz(16.0665, 9.0815, 59.9257)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138CF #B6CF38
analogous
#386BCF #5138CF #9D38CF
triadic
#5138CF #CF5138 #38CF51
tetradic
#5138CF #CF386B #B6CF38 #38CF9D
square
#5138CF #CF386B #B6CF38 #38CF9D
split-complementary
#5138CF #CF9D38 #6BCF38
monochromatic
#2A1B71 #3C27A3 #5138CF #7C69DB #A79BE7

Accessibility & contrast

On white

7.46
#5138CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5138CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138CF
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138CF#FFFFFF#000000##FFFFFF
##5138CF1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5138cf;
/* rgb */ color: rgb(81, 56, 207);
/* oklch */ color: oklch(47.2% 0.218 281.6);
Tailwind
colors: {
  custom: {
    50: '#9072df',
    500: '#5138cf',
    950: '#000000',
  },
}
SCSS
$custom: #5138cf;
$custom-light: #9072df;
$custom-dark: #000000;
JSON
{
  "hex": "#5138cf",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 249.934,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47213,
    "c": 0.21787,
    "h": 281.6
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#5138CF
secondary
#C8D390
accent
#E444CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138CF

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

Preview Lab → · Contrast checker → · Palette generator →

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