#645CBA#645CBA

#645CBA is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.9% C 0.143 H 284.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#645CBA
RGBrgb(100, 92, 186)
HSLhsl(245, 41%, 55%)
HSVhsv(245, 51%, 73%)
CMYKcmyk(46.2%, 50.5%, 0%, 27.1%)
CIE-LABlab(44.10, 27.77, -48.79)
CIE-LCHlch(44.10, 56.14, 299.65°)
OKLaboklab(52.92% 0.0352 -0.1387)
OKLCHoklch(52.92% 0.143 284.2)
XYZxyz(17.9430, 13.9080, 48.1839)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CBA #B2BA5C
analogous
#5C83BA #645CBA #935CBA
triadic
#645CBA #BA645C #5CBA64
tetradic
#645CBA #BA5C83 #B2BA5C #5CBA93
square
#645CBA #BA5C83 #B2BA5C #5CBA93
split-complementary
#645CBA #BA935C #83BA5C
monochromatic
#342E6D #484098 #645CBA #8D87CC #B6B2DE

Accessibility & contrast

On white

5.55
#645CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#645CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CBA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CBA#FFFFFF#000000##FFFFFF
##645CBA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326BBD
Deuteranopia (green-blind)
#2E65B8
Tritanopia (blue-blind)
#487082
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #645cba;
/* rgb */ color: rgb(100, 92, 186);
/* oklch */ color: oklch(52.9% 0.143 284.2);
Tailwind
colors: {
  custom: {
    50: '#958acf',
    500: '#645cba',
    950: '#000000',
  },
}
SCSS
$custom: #645cba;
$custom-light: #958acf;
$custom-dark: #000000;
JSON
{
  "hex": "#645cba",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 245.106,
    "s": 40.517,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.1431,
    "h": 284.2
  },
  "luminance": 0.13909
}

Semantic roles & 50–950 ramp

primary
#645CBA
secondary
#C9CDA5
accent
#D057C6
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #645CBA

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

Preview Lab → · Contrast checker → · Palette generator →

#645CBA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva