#5141CD#5141CD

#5141CD is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.206 H 280.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5141CD
RGBrgb(81, 65, 205)
HSLhsl(247, 58%, 53%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(60.5%, 68.3%, 0%, 19.6%)
CIE-LABlab(37.73, 46.20, -70.24)
CIE-LCHlch(37.73, 84.07, 303.34°)
OKLaboklab(48.29% 0.0377 -0.2024)
OKLCHoklch(48.29% 0.206 280.6)
XYZxyz(16.2996, 9.9365, 58.8048)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141CD #BDCD41
analogous
#4177CD #5141CD #9741CD
triadic
#5141CD #CD5141 #41CD51
tetradic
#5141CD #CD4177 #BDCD41 #41CD97
square
#5141CD #CD4177 #BDCD41 #41CD97
split-complementary
#5141CD #CD9741 #77CD41
monochromatic
#291F75 #392CA5 #5141CD #7D71DA #AAA2E6

Accessibility & contrast

On white

7.03
#5141CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5141CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5141CD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141CD#FFFFFF#000000##FFFFFF
##5141CD1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5141cd;
/* rgb */ color: rgb(81, 65, 205);
/* oklch */ color: oklch(48.3% 0.206 280.6);
Tailwind
colors: {
  custom: {
    50: '#8f77dd',
    500: '#5141cd',
    950: '#000000',
  },
}
SCSS
$custom: #5141cd;
$custom-light: #8f77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5141cd",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 246.857,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4829,
    "c": 0.20589,
    "h": 280.6
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#5141CD
secondary
#CCD397
accent
#E246D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5141CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5141CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva