#5142CB#5142CB

#5142CB is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.202 H 280.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5142CB
RGBrgb(81, 66, 203)
HSLhsl(247, 57%, 53%)
HSVhsv(247, 67%, 80%)
CMYKcmyk(60.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.76, 45.01, -69.02)
CIE-LCHlch(37.76, 82.40, 303.11°)
OKLaboklab(48.26% 0.0372 -0.1988)
OKLCHoklch(48.26% 0.202 280.6)
XYZxyz(16.1176, 9.9564, 57.5608)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142CB #BCCB42
analogous
#4278CB #5142CB #9542CB
triadic
#5142CB #CB5142 #42CB51
tetradic
#5142CB #CB4278 #BCCB42 #42CB95
square
#5142CB #CB4278 #BCCB42 #42CB95
split-complementary
#5142CB #CB9542 #78CB42
monochromatic
#292073 #3A2DA3 #5142CB #7D72D8 #A9A2E5

Accessibility & contrast

On white

7.02
#5142CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5142CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142CB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142CB#FFFFFF#000000##FFFFFF
##5142CB1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5142cb;
/* rgb */ color: rgb(81, 66, 203);
/* oklch */ color: oklch(48.3% 0.202 280.6);
Tailwind
colors: {
  custom: {
    50: '#8f78dc',
    500: '#5142cb',
    950: '#000000',
  },
}
SCSS
$custom: #5142cb;
$custom-light: #8f78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5142cb",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 246.569,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.20229,
    "h": 280.6
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5142CB

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

Preview Lab → · Contrast checker → · Palette generator →

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