#5148CA#5148CA

#5148CA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.1% C 0.194 H 279.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5148CA
RGBrgb(81, 72, 202)
HSLhsl(244, 55%, 54%)
HSVhsv(244, 64%, 79%)
CMYKcmyk(59.9%, 64.4%, 0%, 20.8%)
CIE-LABlab(38.98, 41.20, -66.45)
CIE-LCHlch(38.98, 78.19, 301.80°)
OKLaboklab(49.12% 0.0323 -0.1913)
OKLCHoklch(49.12% 0.194 279.6)
XYZxyz(16.3680, 10.6471, 57.0582)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148CA #C1CA48
analogous
#4880CA #5148CA #9248CA
triadic
#5148CA #CA5148 #48CA51
tetradic
#5148CA #CA4880 #C1CA48 #48CA92
square
#5148CA #CA4880 #C1CA48 #48CA92
split-complementary
#5148CA #CA9248 #80CA48
monochromatic
#282276 #3830A5 #5148CA #7E77D8 #ABA7E5

Accessibility & contrast

On white

6.71
#5148CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5148CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148CA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148CA#FFFFFF#000000##FFFFFF
##5148CA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#006982
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5148ca;
/* rgb */ color: rgb(81, 72, 202);
/* oklch */ color: oklch(49.1% 0.194 279.6);
Tailwind
colors: {
  custom: {
    50: '#8e7cdb',
    500: '#5148ca',
    950: '#000000',
  },
}
SCSS
$custom: #5148ca;
$custom-light: #8e7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5148ca",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 244.154,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49117,
    "c": 0.194,
    "h": 279.6
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#5148CA
secondary
#CFD39B
accent
#DE49D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5148CA

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

Preview Lab → · Contrast checker → · Palette generator →

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