#6166EF#6166EF

#6166EF is a mid, highly saturated blue. Relative luminance 0.183; OKLCH L 58.3% C 0.202 H 276.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#6166EF
RGBrgb(97, 102, 239)
HSLhsl(238, 82%, 66%)
HSVhsv(238, 59%, 94%)
CMYKcmyk(59.4%, 57.3%, 0%, 6.3%)
CIE-LABlab(49.83, 37.71, -69.82)
CIE-LCHlch(49.83, 79.35, 298.38°)
OKLaboklab(58.26% 0.023 -0.2006)
OKLCHoklch(58.26% 0.202 276.6)
XYZxyz(25.2561, 18.2742, 83.8410)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166EF #EFEA61
analogous
#61ADEF #6166EF #A361EF
triadic
#6166EF #EF6166 #66EF61
tetradic
#6166EF #EF61AD #EFEA61 #61EFA3
square
#6166EF #EF61AD #EFEA61 #61EFA3
split-complementary
#6166EF #EFA361 #ADEF61
monochromatic
#141AC2 #2930E9 #6166EF #999CF5 #D0D2FA

Accessibility & contrast

On white

4.51
#6166EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#6166EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6166EF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166EF#FFFFFF#000000##000000
##6166EF1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#0087A1
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #6166ef;
/* rgb */ color: rgb(97, 102, 239);
/* oklch */ color: oklch(58.3% 0.202 276.6);
Tailwind
colors: {
  custom: {
    50: '#9a91f5',
    500: '#6166ef',
    950: '#000000',
  },
}
SCSS
$custom: #6166ef;
$custom-light: #9a91f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6166ef",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 237.887,
    "s": 81.609,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58257,
    "c": 0.2019,
    "h": 276.6
  },
  "luminance": 0.18276
}

Semantic roles & 50–950 ramp

primary
#6166EF
secondary
#EDECBE
accent
#D608DE
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0D17
muted
#7F7D85

Preview Lab

Preview with #6166EF

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

Preview Lab → · Contrast checker → · Palette generator →

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