#6166E1#6166E1

#6166E1 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 57.2% C 0.183 H 277.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#6166E1
RGBrgb(97, 102, 225)
HSLhsl(238, 68%, 63%)
HSVhsv(238, 57%, 88%)
CMYKcmyk(56.9%, 54.7%, 0%, 11.8%)
CIE-LABlab(48.86, 33.22, -63.52)
CIE-LCHlch(48.86, 71.68, 297.61°)
OKLaboklab(57.23% 0.0228 -0.182)
OKLCHoklch(57.23% 0.183 277.1)
XYZxyz(23.2674, 17.4787, 73.3672)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166E1 #E1DC61
analogous
#61A6E1 #6166E1 #9C61E1
triadic
#6166E1 #E16166 #66E161
tetradic
#6166E1 #E161A6 #E1DC61 #61E19C
square
#6166E1 #E161A6 #E1DC61 #61E19C
split-complementary
#6166E1 #E19C61 #A6E161
monochromatic
#2025A8 #2E34D7 #6166E1 #9498EB #C8CAF5

Accessibility & contrast

On white

4.67
#6166E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#6166E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #6166E1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166E1#FFFFFF#000000##FFFFFF
##6166E11.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C79E5
Deuteranopia (green-blind)
#006FDE
Tritanopia (blue-blind)
#10839A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #6166e1;
/* rgb */ color: rgb(97, 102, 225);
/* oklch */ color: oklch(57.2% 0.183 277.1);
Tailwind
colors: {
  custom: {
    50: '#9891eb',
    500: '#6166e1',
    950: '#000000',
  },
}
SCSS
$custom: #6166e1;
$custom-light: #9891eb;
$custom-dark: #000000;
JSON
{
  "hex": "#6166e1",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 225
  },
  "hsl": {
    "h": 237.656,
    "s": 68.085,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57229,
    "c": 0.18346,
    "h": 277.1
  },
  "luminance": 0.1748
}

Semantic roles & 50–950 ramp

primary
#6166E1
secondary
#E6E4B8
accent
#C915D0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #6166E1

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

Preview Lab → · Contrast checker → · Palette generator →

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