#666CEF#666CEF

#666CEF is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.7% C 0.193 H 276.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#666CEF
RGBrgb(102, 108, 239)
HSLhsl(237, 81%, 67%)
HSVhsv(237, 57%, 94%)
CMYKcmyk(57.3%, 54.8%, 0%, 6.3%)
CIE-LABlab(51.59, 34.98, -66.95)
CIE-LCHlch(51.59, 75.54, 297.58°)
OKLaboklab(59.65% 0.023 -0.192)
OKLCHoklch(59.65% 0.193 276.8)
XYZxyz(26.4170, 19.7800, 84.0705)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666CEF #EFE966
analogous
#66B1EF #666CEF #A566EF
triadic
#666CEF #EF666C #6CEF66
tetradic
#666CEF #EF66B1 #EFE966 #66EFA5
square
#666CEF #EF66B1 #EFE966 #66EFA5
split-complementary
#666CEF #EFA566 #B1EF66
monochromatic
#151CC6 #2F37E9 #666CEF #9DA1F5 #D5D6FB

Accessibility & contrast

On white

4.24
#666CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#666CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #666CEF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666CEF#FFFFFF#000000##000000
##666CEF1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0481F3
Deuteranopia (green-blind)
#0075EC
Tritanopia (blue-blind)
#038BA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #666cef;
/* rgb */ color: rgb(102, 108, 239);
/* oklch */ color: oklch(59.7% 0.193 276.8);
Tailwind
colors: {
  custom: {
    50: '#9d96f5',
    500: '#666cef',
    950: '#000000',
  },
}
SCSS
$custom: #666cef;
$custom-light: #9d96f5;
$custom-dark: #000000;
JSON
{
  "hex": "#666cef",
  "rgb": {
    "r": 102,
    "g": 108,
    "b": 239
  },
  "hsl": {
    "h": 237.372,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59652,
    "c": 0.19333,
    "h": 276.8
  },
  "luminance": 0.19782
}

Semantic roles & 50–950 ramp

primary
#666CEF
secondary
#EEECC2
accent
#D408DD
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #666CEF

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

Preview Lab → · Contrast checker → · Palette generator →

#666CEF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva