#665FBA#665FBA

#665FBA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.7% C 0.139 H 284.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#665FBA
RGBrgb(102, 95, 186)
HSLhsl(245, 40%, 55%)
HSVhsv(245, 49%, 73%)
CMYKcmyk(45.2%, 48.9%, 0%, 27.1%)
CIE-LABlab(45.02, 26.41, -47.31)
CIE-LCHlch(45.02, 54.18, 299.17°)
OKLaboklab(53.65% 0.034 -0.1343)
OKLCHoklch(53.65% 0.139 284.2)
XYZxyz(18.4320, 14.5536, 48.2828)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#665FBA #B3BA5F
analogous
#5F86BA #665FBA #935FBA
triadic
#665FBA #BA665F #5FBA66
tetradic
#665FBA #BA5F86 #B3BA5F #5FBA93
square
#665FBA #BA5F86 #B3BA5F #5FBA93
split-complementary
#665FBA #BA935F #86BA5F
monochromatic
#35306F #49429A #665FBA #8F8ACC #B8B5DF

Accessibility & contrast

On white

5.37
#665FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#665FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #665FBA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##665FBA#FFFFFF#000000##FFFFFF
##665FBA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386DBD
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#4B7284
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #665fba;
/* rgb */ color: rgb(102, 95, 186);
/* oklch */ color: oklch(53.7% 0.139 284.2);
Tailwind
colors: {
  custom: {
    50: '#968ccf',
    500: '#665fba',
    950: '#000000',
  },
}
SCSS
$custom: #665fba;
$custom-light: #968ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#665fba",
  "rgb": {
    "r": 102,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 244.615,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53651,
    "c": 0.13853,
    "h": 284.2
  },
  "luminance": 0.14554
}

Semantic roles & 50–950 ramp

primary
#665FBA
secondary
#CBCDA7
accent
#D058C6
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0E0C14
muted
#7E7D82

Preview Lab

Preview with #665FBA

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

Preview Lab → · Contrast checker → · Palette generator →

#665FBA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva