#5154DB#5154DB

#5154DB is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.5% C 0.201 H 276.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5154DB
RGBrgb(81, 84, 219)
HSLhsl(239, 66%, 59%)
HSVhsv(239, 63%, 86%)
CMYKcmyk(63%, 61.6%, 0%, 14.1%)
CIE-LABlab(43.07, 39.52, -69.56)
CIE-LCHlch(43.07, 80.00, 299.60°)
OKLaboklab(52.53% 0.021 -0.2004)
OKLCHoklch(52.53% 0.201 276)
XYZxyz(19.3457, 13.2029, 68.5330)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154DB #DBD851
analogous
#5199DB #5154DB #9351DB
triadic
#5154DB #DB5154 #54DB51
tetradic
#5154DB #DB5199 #DBD851 #51DB93
square
#5154DB #DB5199 #DBD851 #51DB93
split-complementary
#5154DB #DB9351 #99DB51
monochromatic
#1E2193 #292CC6 #5154DB #8486E5 #B6B8F0

Accessibility & contrast

On white

5.77
#5154DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5154DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154DB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154DB#FFFFFF#000000##FFFFFF
##5154DB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5154db;
/* rgb */ color: rgb(81, 84, 219);
/* oklch */ color: oklch(52.5% 0.201 276.0);
Tailwind
colors: {
  custom: {
    50: '#9084e7',
    500: '#5154db',
    950: '#000000',
  },
}
SCSS
$custom: #5154db;
$custom-light: #9084e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5154db",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 238.696,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52527,
    "c": 0.20146,
    "h": 276
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#5154DB
secondary
#DFDEA9
accent
#E53FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154DB

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

Preview Lab → · Contrast checker → · Palette generator →

#5154DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva