#5148BF#5148BF

#5148BF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.2% C 0.180 H 280.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5148BF
RGBrgb(81, 72, 191)
HSLhsl(245, 48%, 52%)
HSVhsv(245, 62%, 75%)
CMYKcmyk(57.6%, 62.3%, 0%, 25.1%)
CIE-LABlab(38.10, 37.68, -61.48)
CIE-LCHlch(38.10, 72.10, 301.50°)
OKLaboklab(48.2% 0.0332 -0.1767)
OKLCHoklch(48.2% 0.18 280.6)
XYZxyz(15.1117, 10.1446, 50.4419)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148BF #B6BF48
analogous
#487BBF #5148BF #8D48BF
triadic
#5148BF #BF5148 #48BF51
tetradic
#5148BF #BF487B #B6BF48 #48BF8D
square
#5148BF #BF487B #B6BF48 #48BF8D
split-complementary
#5148BF #BF8D48 #7BBF48
monochromatic
#2A2468 #3C3496 #5148BF #7C75CF #A7A3DF

Accessibility & contrast

On white

6.93
#5148BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5148BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148BF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148BF#FFFFFF#000000##FFFFFF
##5148BF1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#10657D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5148bf;
/* rgb */ color: rgb(81, 72, 191);
/* oklch */ color: oklch(48.2% 0.180 280.6);
Tailwind
colors: {
  custom: {
    50: '#8c7bd3',
    500: '#5148bf',
    950: '#000000',
  },
}
SCSS
$custom: #5148bf;
$custom-light: #8c7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5148bf",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 244.538,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48202,
    "c": 0.17978,
    "h": 280.6
  },
  "luminance": 0.10146
}

Semantic roles & 50–950 ramp

primary
#5148BF
secondary
#C8CC97
accent
#D850CD
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5148BF

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

Preview Lab → · Contrast checker → · Palette generator →

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