#6172CA#6172CA

#6172CA is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.0% C 0.136 H 273.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#6172CA
RGBrgb(97, 114, 202)
HSLhsl(230, 50%, 59%)
HSVhsv(230, 52%, 79%)
CMYKcmyk(52%, 43.6%, 0%, 20.8%)
CIE-LABlab(50.50, 18.51, -47.81)
CIE-LCHlch(50.50, 51.27, 291.17°)
OKLaboklab(58.01% 0.0076 -0.1358)
OKLCHoklch(58.01% 0.136 273.2)
XYZxyz(21.6043, 18.8389, 58.3635)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6172CA #CAB961
analogous
#61A6CA #6172CA #8461CA
triadic
#6172CA #CA6172 #72CA61
tetradic
#6172CA #CA61A6 #CAB961 #61CA84
square
#6172CA #CA61A6 #CAB961 #61CA84
split-complementary
#6172CA #CA8461 #A6CA61
monochromatic
#2C3B84 #3C4FB2 #6172CA #8F9BD9 #BDC4E9

Accessibility & contrast

On white

4.40
#6172CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#6172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6172CA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6172CA#FFFFFF#000000##000000
##6172CA1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCD
Deuteranopia (green-blind)
#4274C8
Tritanopia (blue-blind)
#328594
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #6172ca;
/* rgb */ color: rgb(97, 114, 202);
/* oklch */ color: oklch(58.0% 0.136 273.2);
Tailwind
colors: {
  custom: {
    50: '#959ada',
    500: '#6172ca',
    950: '#000000',
  },
}
SCSS
$custom: #6172ca;
$custom-light: #959ada;
$custom-dark: #000000;
JSON
{
  "hex": "#6172ca",
  "rgb": {
    "r": 97,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 230.286,
    "s": 49.763,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58014,
    "c": 0.13598,
    "h": 273.2
  },
  "luminance": 0.1884
}

Semantic roles & 50–950 ramp

primary
#6172CA
secondary
#D8D1AF
accent
#C34FD9
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #6172CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6172CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva