#5148BB#5148BB

#5148BB is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.9% C 0.175 H 281.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5148BB
RGBrgb(81, 72, 187)
HSLhsl(245, 46%, 51%)
HSVhsv(245, 61%, 73%)
CMYKcmyk(56.7%, 61.5%, 0%, 26.7%)
CIE-LABlab(37.79, 36.40, -59.64)
CIE-LCHlch(37.79, 69.87, 301.40°)
OKLaboklab(47.88% 0.0335 -0.1713)
OKLCHoklch(47.88% 0.175 281.1)
XYZxyz(14.6775, 9.9710, 48.1552)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148BB #B2BB48
analogous
#4878BB #5148BB #8A48BB
triadic
#5148BB #BB5148 #48BB51
tetradic
#5148BB #BB4878 #B2BB48 #48BB8A
square
#5148BB #BB4878 #B2BB48 #48BB8A
split-complementary
#5148BB #BB8A48 #78BB48
monochromatic
#2A2564 #3D3690 #5148BB #7B75CC #A6A1DC

Accessibility & contrast

On white

7.01
#5148BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5148BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5148BB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148BB#FFFFFF#000000##FFFFFF
##5148BB1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#19647A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5148bb;
/* rgb */ color: rgb(81, 72, 187);
/* oklch */ color: oklch(47.9% 0.175 281.1);
Tailwind
colors: {
  custom: {
    50: '#8c7bd0',
    500: '#5148bb',
    950: '#000000',
  },
}
SCSS
$custom: #5148bb;
$custom-light: #8c7bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5148bb",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 244.696,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.17452,
    "h": 281.1
  },
  "luminance": 0.09972
}

Semantic roles & 50–950 ramp

primary
#5148BB
secondary
#C5C996
accent
#D552CB
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5148BB

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

Preview Lab → · Contrast checker → · Palette generator →

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