#5145DD#5145DD

#5145DD is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.3% C 0.221 H 278.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5145DD
RGBrgb(81, 69, 221)
HSLhsl(245, 69%, 57%)
HSVhsv(245, 69%, 87%)
CMYKcmyk(63.3%, 68.8%, 0%, 13.3%)
CIE-LABlab(39.96, 48.93, -75.79)
CIE-LCHlch(39.96, 90.22, 302.85°)
OKLaboklab(50.32% 0.0323 -0.2187)
OKLCHoklch(50.32% 0.221 278.4)
XYZxyz(18.5684, 11.2245, 69.5806)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145DD #D1DD45
analogous
#4585DD #5145DD #9D45DD
triadic
#5145DD #DD5145 #45DD51
tetradic
#5145DD #DD4585 #D1DD45 #45DD9D
square
#5145DD #DD4585 #D1DD45 #45DD9D
split-complementary
#5145DD #DD9D45 #85DD45
monochromatic
#231A8E #3023C1 #5145DD #8179E6 #B2ACF0

Accessibility & contrast

On white

6.47
#5145DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5145DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145DD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145DD#FFFFFF#000000##FFFFFF
##5145DD1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#0058DA
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5145dd;
/* rgb */ color: rgb(81, 69, 221);
/* oklch */ color: oklch(50.3% 0.221 278.4);
Tailwind
colors: {
  custom: {
    50: '#927ae9',
    500: '#5145dd',
    950: '#000000',
  },
}
SCSS
$custom: #5145dd;
$custom-light: #927ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#5145dd",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 221
  },
  "hsl": {
    "h": 244.737,
    "s": 69.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5032,
    "c": 0.22105,
    "h": 278.4
  },
  "luminance": 0.11226
}

Semantic roles & 50–950 ramp

primary
#5145DD
secondary
#D9DEA0
accent
#EC3CDE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145DD

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

Preview Lab → · Contrast checker → · Palette generator →

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