#5138E3#5138E3

#5138E3 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 49.1% C 0.241 H 279.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5138E3
RGBrgb(81, 56, 227)
HSLhsl(249, 75%, 55%)
HSVhsv(249, 75%, 89%)
CMYKcmyk(64.3%, 75.3%, 0%, 11%)
CIE-LABlab(38.06, 57.62, -82.34)
CIE-LCHlch(38.06, 100.50, 304.98°)
OKLaboklab(49.14% 0.0394 -0.2377)
OKLCHoklch(49.14% 0.241 279.4)
XYZxyz(18.6682, 10.1222, 73.6282)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138E3 #CAE338
analogous
#3874E3 #5138E3 #A638E3
triadic
#5138E3 #E35138 #38E351
tetradic
#5138E3 #E33874 #CAE338 #38E3A6
square
#5138E3 #E33874 #CAE338 #38E3A6
split-complementary
#5138E3 #E3A638 #74E338
monochromatic
#25148D #341BC2 #5138E3 #806EEB #AFA3F2

Accessibility & contrast

On white

6.94
#5138E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5138E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5138E3
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138E3#FFFFFF#000000##FFFFFF
##5138E31.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E8
Deuteranopia (green-blind)
#0053E0
Tritanopia (blue-blind)
#006A8C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5138e3;
/* rgb */ color: rgb(81, 56, 227);
/* oklch */ color: oklch(49.1% 0.241 279.4);
Tailwind
colors: {
  custom: {
    50: '#9473ed',
    500: '#5138e3',
    950: '#000000',
  },
}
SCSS
$custom: #5138e3;
$custom-light: #9473ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5138e3",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 227
  },
  "hsl": {
    "h": 248.772,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49143,
    "c": 0.24096,
    "h": 279.4
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#5138E3
secondary
#D5DF98
accent
#F236D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5138E3

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

Preview Lab → · Contrast checker → · Palette generator →

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