#5148BC#5148BC

#5148BC is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.0% C 0.176 H 281.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5148BC
RGBrgb(81, 72, 188)
HSLhsl(245, 46%, 51%)
HSVhsv(245, 62%, 74%)
CMYKcmyk(56.9%, 61.7%, 0%, 26.3%)
CIE-LABlab(37.87, 36.72, -60.10)
CIE-LCHlch(37.87, 70.43, 301.42°)
OKLaboklab(47.96% 0.0334 -0.1726)
OKLCHoklch(47.96% 0.176 281)
XYZxyz(14.7850, 10.0139, 48.7210)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148BC #B3BC48
analogous
#4879BC #5148BC #8B48BC
triadic
#5148BC #BC5148 #48BC51
tetradic
#5148BC #BC4879 #B3BC48 #48BC8B
square
#5148BC #BC4879 #B3BC48 #48BC8B
split-complementary
#5148BC #BC8B48 #79BC48
monochromatic
#2A2565 #3C3592 #5148BC #7C75CC #A6A2DD

Accessibility & contrast

On white

6.99
#5148BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5148BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148BC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148BC#FFFFFF#000000##FFFFFF
##5148BC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#17647B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5148bc;
/* rgb */ color: rgb(81, 72, 188);
/* oklch */ color: oklch(48.0% 0.176 281.0);
Tailwind
colors: {
  custom: {
    50: '#8c7bd1',
    500: '#5148bc',
    950: '#000000',
  },
}
SCSS
$custom: #5148bc;
$custom-light: #8c7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5148bc",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 244.655,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.17583,
    "h": 281
  },
  "luminance": 0.10015
}

Semantic roles & 50–950 ramp

primary
#5148BC
secondary
#C6CA96
accent
#D652CC
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5148BC

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

Preview Lab → · Contrast checker → · Palette generator →

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