#5166CA#5166CA

#5166CA is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.6% C 0.156 H 271.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5166CA
RGBrgb(81, 102, 202)
HSLhsl(230, 53%, 55%)
HSVhsv(230, 60%, 79%)
CMYKcmyk(59.9%, 49.5%, 0%, 20.8%)
CIE-LABlab(46.33, 22.66, -54.54)
CIE-LCHlch(46.33, 59.06, 292.57°)
OKLaboklab(54.58% 0.0039 -0.156)
OKLCHoklch(54.58% 0.156 271.4)
XYZxyz(18.8018, 15.5148, 57.8695)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CA #CAB551
analogous
#51A2CA #5166CA #7851CA
triadic
#5166CA #CA5166 #66CA51
tetradic
#5166CA #CA51A2 #CAB551 #51CA78
square
#5166CA #CA51A2 #CAB551 #51CA78
split-complementary
#5166CA #CA7851 #A2CA51
monochromatic
#25347B #3448AA #5166CA #808FD8 #AFB8E7

Accessibility & contrast

On white

5.12
#5166CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5166CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CA#FFFFFF#000000##FFFFFF
##5166CA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3273CE
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#007D8E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166ca;
/* rgb */ color: rgb(81, 102, 202);
/* oklch */ color: oklch(54.6% 0.156 271.4);
Tailwind
colors: {
  custom: {
    50: '#8c91db',
    500: '#5166ca',
    950: '#000000',
  },
}
SCSS
$custom: #5166ca;
$custom-light: #8c91db;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ca",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 202
  },
  "hsl": {
    "h": 229.587,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54583,
    "c": 0.15606,
    "h": 271.4
  },
  "luminance": 0.15516
}

Semantic roles & 50–950 ramp

primary
#5166CA
secondary
#D5CCA2
accent
#C34BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5166CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva