#5145BF#5145BF

#5145BF is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.7% C 0.184 H 281.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5145BF
RGBrgb(81, 69, 191)
HSLhsl(246, 49%, 51%)
HSVhsv(246, 64%, 75%)
CMYKcmyk(57.6%, 63.9%, 0%, 25.1%)
CIE-LABlab(37.42, 39.48, -62.59)
CIE-LCHlch(37.42, 74.00, 302.24°)
OKLaboklab(47.71% 0.036 -0.18)
OKLCHoklch(47.71% 0.184 281.3)
XYZxyz(14.9225, 9.7662, 50.3788)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145BF #B3BF45
analogous
#4576BF #5145BF #8E45BF
triadic
#5145BF #BF5145 #45BF51
tetradic
#5145BF #BF4576 #B3BF45 #45BF8E
square
#5145BF #BF4576 #B3BF45 #45BF8E
split-complementary
#5145BF #BF8E45 #76BF45
monochromatic
#2A2366 #3C3394 #5145BF #7C73CF #A6A0DE

Accessibility & contrast

On white

7.11
#5145BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5145BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145BF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145BF#FFFFFF#000000##FFFFFF
##5145BF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#11637C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5145bf;
/* rgb */ color: rgb(81, 69, 191);
/* oklch */ color: oklch(47.7% 0.184 281.3);
Tailwind
colors: {
  custom: {
    50: '#8d79d3',
    500: '#5145bf',
    950: '#000000',
  },
}
SCSS
$custom: #5145bf;
$custom-light: #8d79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5145bf",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 245.902,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47705,
    "c": 0.18353,
    "h": 281.3
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#5145BF
secondary
#C6CB95
accent
#D84FCB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145BF

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

Preview Lab → · Contrast checker → · Palette generator →

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