#6166DC#6166DC

#6166DC is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.9% C 0.177 H 277.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#6166DC
RGBrgb(97, 102, 220)
HSLhsl(238, 64%, 62%)
HSVhsv(238, 56%, 86%)
CMYKcmyk(55.9%, 53.6%, 0%, 13.7%)
CIE-LABlab(48.52, 31.62, -61.22)
CIE-LCHlch(48.52, 68.91, 297.32°)
OKLaboklab(56.87% 0.0226 -0.1753)
OKLCHoklch(56.87% 0.177 277.4)
XYZxyz(22.5953, 17.2099, 69.8274)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166DC #DCD761
analogous
#61A4DC #6166DC #9A61DC
triadic
#6166DC #DC6166 #66DC61
tetradic
#6166DC #DC61A4 #DCD761 #61DC9A
square
#6166DC #DC61A4 #DCD761 #61DC9A
split-complementary
#6166DC #DC9A61 #A4DC61
monochromatic
#23289F #2F35D1 #6166DC #9397E7 #C5C7F2

Accessibility & contrast

On white

4.73
#6166DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#6166DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6166DC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166DC#FFFFFF#000000##FFFFFF
##6166DC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C78E0
Deuteranopia (green-blind)
#006EDA
Tritanopia (blue-blind)
#1C8197
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #6166dc;
/* rgb */ color: rgb(97, 102, 220);
/* oklch */ color: oklch(56.9% 0.177 277.4);
Tailwind
colors: {
  custom: {
    50: '#9891e8',
    500: '#6166dc',
    950: '#000000',
  },
}
SCSS
$custom: #6166dc;
$custom-light: #9891e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6166dc",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 237.561,
    "s": 63.731,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56873,
    "c": 0.17675,
    "h": 277.4
  },
  "luminance": 0.17211
}

Semantic roles & 50–950 ramp

primary
#6166DC
secondary
#E3E1B6
accent
#C41ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #6166DC

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

Preview Lab → · Contrast checker → · Palette generator →

#6166DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva