#664CEF#664CEF

#664CEF is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.5% C 0.232 H 282.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#664CEF
RGBrgb(102, 76, 239)
HSLhsl(250, 84%, 62%)
HSVhsv(250, 68%, 94%)
CMYKcmyk(57.3%, 68.2%, 0%, 6.3%)
CIE-LABlab(44.55, 53.43, -78.40)
CIE-LCHlch(44.55, 94.88, 304.28°)
OKLaboklab(54.5% 0.0514 -0.2257)
OKLCHoklch(54.5% 0.232 282.8)
XYZxyz(23.6391, 14.2241, 83.1445)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CEF #D5EF4C
analogous
#4C83EF #664CEF #B84CEF
triadic
#664CEF #EF664C #4CEF66
tetradic
#664CEF #EF4C83 #D5EF4C #4CEFB8
square
#664CEF #EF4C83 #D5EF4C #4CEFB8
split-complementary
#664CEF #EFB84C #83EF4C
monochromatic
#2910B1 #3715E9 #664CEF #9684F4 #C6BCF9

Accessibility & contrast

On white

5.46
#664CEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#664CEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CEF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CEF#FFFFFF#000000##FFFFFF
##664CEF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF4
Deuteranopia (green-blind)
#0064EC
Tritanopia (blue-blind)
#147798
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #664cef;
/* rgb */ color: rgb(102, 76, 239);
/* oklch */ color: oklch(54.5% 0.232 282.8);
Tailwind
colors: {
  custom: {
    50: '#9f80f5',
    500: '#664cef',
    950: '#000000',
  },
}
SCSS
$custom: #664cef;
$custom-light: #9f80f5;
$custom-dark: #000000;
JSON
{
  "hex": "#664cef",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 239
  },
  "hsl": {
    "h": 249.571,
    "s": 83.59,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54503,
    "c": 0.23152,
    "h": 282.8
  },
  "luminance": 0.14226
}

Semantic roles & 50–950 ramp

primary
#664CEF
secondary
#E0EAAD
accent
#E005BD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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