#5148CB#5148CB

#5148CB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.2% C 0.195 H 279.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5148CB
RGBrgb(81, 72, 203)
HSLhsl(244, 56%, 54%)
HSVhsv(244, 65%, 80%)
CMYKcmyk(60.1%, 64.5%, 0%, 20.4%)
CIE-LABlab(39.06, 41.52, -66.90)
CIE-LCHlch(39.06, 78.73, 301.82°)
OKLaboklab(49.2% 0.0322 -0.1926)
OKLCHoklch(49.2% 0.195 279.5)
XYZxyz(16.4868, 10.6947, 57.6838)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148CB #C2CB48
analogous
#4881CB #5148CB #9348CB
triadic
#5148CB #CB5148 #48CB51
tetradic
#5148CB #CB4881 #C2CB48 #48CB93
square
#5148CB #CB4881 #C2CB48 #48CB93
split-complementary
#5148CB #CB9348 #81CB48
monochromatic
#282277 #372FA6 #5148CB #7E78D9 #ACA7E6

Accessibility & contrast

On white

6.69
#5148CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5148CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148CB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148CB#FFFFFF#000000##FFFFFF
##5148CB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5148cb;
/* rgb */ color: rgb(81, 72, 203);
/* oklch */ color: oklch(49.2% 0.195 279.5);
Tailwind
colors: {
  custom: {
    50: '#8e7cdc',
    500: '#5148cb',
    950: '#000000',
  },
}
SCSS
$custom: #5148cb;
$custom-light: #8e7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5148cb",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 244.122,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49202,
    "c": 0.19528,
    "h": 279.5
  },
  "luminance": 0.10696
}

Semantic roles & 50–950 ramp

primary
#5148CB
secondary
#D0D39B
accent
#DF49D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5148CB

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

Preview Lab → · Contrast checker → · Palette generator →

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