#5138DD#5138DD

#5138DD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.6% C 0.234 H 280.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5138DD
RGBrgb(81, 56, 221)
HSLhsl(249, 71%, 54%)
HSVhsv(249, 75%, 87%)
CMYKcmyk(63.3%, 74.7%, 0%, 13.3%)
CIE-LABlab(37.48, 55.86, -79.87)
CIE-LCHlch(37.48, 97.47, 304.97°)
OKLaboklab(48.56% 0.0408 -0.2305)
OKLCHoklch(48.56% 0.234 280)
XYZxyz(17.8545, 9.7967, 69.3427)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138DD #C4DD38
analogous
#3872DD #5138DD #A438DD
triadic
#5138DD #DD5138 #38DD51
tetradic
#5138DD #DD3872 #C4DD38 #38DDA4
square
#5138DD #DD3872 #C4DD38 #38DDA4
split-complementary
#5138DD #DDA438 #72DD38
monochromatic
#271784 #371FB8 #5138DD #7F6CE6 #ACA1EF

Accessibility & contrast

On white

7.10
#5138DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5138DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138DD
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138DD#FFFFFF#000000##FFFFFF
##5138DD1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE2
Deuteranopia (green-blind)
#0052DA
Tritanopia (blue-blind)
#006888
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5138dd;
/* rgb */ color: rgb(81, 56, 221);
/* oklch */ color: oklch(48.6% 0.234 280.0);
Tailwind
colors: {
  custom: {
    50: '#9372e9',
    500: '#5138dd',
    950: '#000000',
  },
}
SCSS
$custom: #5138dd;
$custom-light: #9372e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5138dd",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 249.091,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48556,
    "c": 0.23412,
    "h": 280
  },
  "luminance": 0.09798
}

Semantic roles & 50–950 ramp

primary
#5138DD
secondary
#D1DB95
accent
#EE3AD2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5138DD

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

Preview Lab → · Contrast checker → · Palette generator →

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