#666AEF#666AEF

#666AEF is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.3% C 0.196 H 277.3°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#666AEF
RGBrgb(102, 106, 239)
HSLhsl(238, 81%, 67%)
HSVhsv(238, 57%, 94%)
CMYKcmyk(57.3%, 55.6%, 0%, 6.3%)
CIE-LABlab(51.11, 36.18, -67.72)
CIE-LCHlch(51.11, 76.78, 298.11°)
OKLaboklab(59.3% 0.0249 -0.1942)
OKLCHoklch(59.3% 0.196 277.3)
XYZxyz(26.2085, 19.3630, 84.0010)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666AEF #EFEB66
analogous
#66AFEF #666AEF #A766EF
triadic
#666AEF #EF666A #6AEF66
tetradic
#666AEF #EF66AF #EFEB66 #66EFA7
square
#666AEF #EF66AF #EFEB66 #66EFA7
split-complementary
#666AEF #EFA766 #AFEF66
monochromatic
#151AC6 #2F34E9 #666AEF #9DA0F5 #D5D6FB

Accessibility & contrast

On white

4.31
#666AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#666AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #666AEF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666AEF#FFFFFF#000000##000000
##666AEF1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F4
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#0589A2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #666aef;
/* rgb */ color: rgb(102, 106, 239);
/* oklch */ color: oklch(59.3% 0.196 277.3);
Tailwind
colors: {
  custom: {
    50: '#9d94f5',
    500: '#666aef',
    950: '#000000',
  },
}
SCSS
$custom: #666aef;
$custom-light: #9d94f5;
$custom-dark: #000000;
JSON
{
  "hex": "#666aef",
  "rgb": {
    "r": 102,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 238.248,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59296,
    "c": 0.19584,
    "h": 277.3
  },
  "luminance": 0.19365
}

Semantic roles & 50–950 ramp

primary
#666AEF
secondary
#EEEDC2
accent
#D708DD
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #666AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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