#5164DB#5164DB

#5164DB is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.4% C 0.182 H 272.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5164DB
RGBrgb(81, 100, 219)
HSLhsl(232, 66%, 59%)
HSVhsv(232, 63%, 86%)
CMYKcmyk(63%, 54.3%, 0%, 14.1%)
CIE-LABlab(46.94, 29.67, -63.26)
CIE-LCHlch(46.94, 69.87, 295.13°)
OKLaboklab(55.4% 0.0071 -0.1817)
OKLCHoklch(55.4% 0.182 272.2)
XYZxyz(20.7324, 15.9764, 68.9953)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164DB #DBC851
analogous
#51A9DB #5164DB #8351DB
triadic
#5164DB #DB5164 #64DB51
tetradic
#5164DB #DB51A9 #DBC851 #51DB83
square
#5164DB #DB51A9 #DBC851 #51DB83
split-complementary
#5164DB #DB8351 #A9DB51
monochromatic
#1E2F93 #293FC6 #5164DB #8491E5 #B6BEF0

Accessibility & contrast

On white

5.01
#5164DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5164DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164DB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164DB#FFFFFF#000000##FFFFFF
##5164DB1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0576DF
Deuteranopia (green-blind)
#0069D9
Tritanopia (blue-blind)
#008096
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5164db;
/* rgb */ color: rgb(81, 100, 219);
/* oklch */ color: oklch(55.4% 0.182 272.2);
Tailwind
colors: {
  custom: {
    50: '#8f8fe7',
    500: '#5164db',
    950: '#000000',
  },
}
SCSS
$custom: #5164db;
$custom-light: #8f8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5164db",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 219
  },
  "hsl": {
    "h": 231.739,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55404,
    "c": 0.18184,
    "h": 272.2
  },
  "luminance": 0.15978
}

Semantic roles & 50–950 ramp

primary
#5164DB
secondary
#DFD8A9
accent
#D13FE9
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5164DB

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

Preview Lab → · Contrast checker → · Palette generator →

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