#5141CB#5141CB

#5141CB is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.203 H 280.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5141CB
RGBrgb(81, 65, 203)
HSLhsl(247, 57%, 53%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(60.1%, 68%, 0%, 20.4%)
CIE-LABlab(37.55, 45.58, -69.36)
CIE-LCHlch(37.55, 83.00, 303.31°)
OKLaboklab(48.11% 0.038 -0.1998)
OKLCHoklch(48.11% 0.203 280.8)
XYZxyz(16.0597, 9.8406, 57.5415)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141CB #BBCB41
analogous
#4176CB #5141CB #9641CB
triadic
#5141CB #CB5141 #41CB51
tetradic
#5141CB #CB4176 #BBCB41 #41CB96
square
#5141CB #CB4176 #BBCB41 #41CB96
split-complementary
#5141CB #CB9641 #76CB41
monochromatic
#291F72 #3A2CA2 #5141CB #7D71D8 #A9A1E5

Accessibility & contrast

On white

7.07
#5141CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5141CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5141CB
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141CB#FFFFFF#000000##FFFFFF
##5141CB1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5141cb;
/* rgb */ color: rgb(81, 65, 203);
/* oklch */ color: oklch(48.1% 0.203 280.8);
Tailwind
colors: {
  custom: {
    50: '#8f77dc',
    500: '#5141cb',
    950: '#000000',
  },
}
SCSS
$custom: #5141cb;
$custom-light: #8f77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5141cb",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 246.957,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48112,
    "c": 0.20342,
    "h": 280.8
  },
  "luminance": 0.09842
}

Semantic roles & 50–950 ramp

primary
#5141CB
secondary
#CBD296
accent
#E048CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5141CB

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

Preview Lab → · Contrast checker → · Palette generator →

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