#664DEF#664DEF

#664DEF is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.6% C 0.230 H 282.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#664DEF
RGBrgb(102, 77, 239)
HSLhsl(249, 84%, 62%)
HSVhsv(249, 68%, 94%)
CMYKcmyk(57.3%, 67.8%, 0%, 6.3%)
CIE-LABlab(44.75, 52.90, -78.08)
CIE-LCHlch(44.75, 94.31, 304.12°)
OKLaboklab(54.64% 0.0506 -0.2248)
OKLCHoklch(54.64% 0.23 282.7)
XYZxyz(23.7085, 14.3630, 83.1676)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DEF #D6EF4D
analogous
#4D85EF #664DEF #B74DEF
triadic
#664DEF #EF664D #4DEF66
tetradic
#664DEF #EF4D85 #D6EF4D #4DEFB7
square
#664DEF #EF4D85 #D6EF4D #4DEFB7
split-complementary
#664DEF #EFB74D #85EF4D
monochromatic
#2910B2 #3615EA #664DEF #9685F4 #C7BDF9

Accessibility & contrast

On white

5.42
#664DEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#664DEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DEF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DEF#FFFFFF#000000##FFFFFF
##664DEF1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #664def;
/* rgb */ color: rgb(102, 77, 239);
/* oklch */ color: oklch(54.6% 0.230 282.7);
Tailwind
colors: {
  custom: {
    50: '#9f81f5',
    500: '#664def',
    950: '#000000',
  },
}
SCSS
$custom: #664def;
$custom-light: #9f81f5;
$custom-dark: #000000;
JSON
{
  "hex": "#664def",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 239
  },
  "hsl": {
    "h": 249.259,
    "s": 83.505,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54644,
    "c": 0.23041,
    "h": 282.7
  },
  "luminance": 0.14365
}

Semantic roles & 50–950 ramp

primary
#664DEF
secondary
#E1EAAE
accent
#E006BE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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