#5F6AEA#5F6AEA

#5F6AEA is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.5% C 0.191 H 275.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F6AEA
RGBrgb(95, 106, 234)
HSLhsl(235, 77%, 65%)
HSVhsv(235, 59%, 92%)
CMYKcmyk(59.4%, 54.7%, 0%, 8.2%)
CIE-LABlab(50.31, 33.34, -66.24)
CIE-LCHlch(50.31, 74.16, 296.72°)
OKLaboklab(58.47% 0.017 -0.1901)
OKLCHoklch(58.47% 0.191 275.1)
XYZxyz(24.7198, 18.6796, 80.1288)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6AEA #EADF5F
analogous
#5FB0EA #5F6AEA #9A5FEA
triadic
#5F6AEA #EA5F6A #6AEA5F
tetradic
#5F6AEA #EA5FB0 #EADF5F #5FEA9A
square
#5F6AEA #EA5FB0 #EADF5F #5FEA9A
split-complementary
#5F6AEA #EA9A5F #B0EA5F
monochromatic
#1825B7 #2938E3 #5F6AEA #959CF1 #CBCFF8

Accessibility & contrast

On white

4.43
#5F6AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5F6AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6AEA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6AEA#FFFFFF#000000##000000
##5F6AEA1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#027EEE
Deuteranopia (green-blind)
#0072E7
Tritanopia (blue-blind)
#0088A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5f6aea;
/* rgb */ color: rgb(95, 106, 234);
/* oklch */ color: oklch(58.5% 0.191 275.1);
Tailwind
colors: {
  custom: {
    50: '#9894f2',
    500: '#5f6aea',
    950: '#000000',
  },
}
SCSS
$custom: #5f6aea;
$custom-light: #9894f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6aea",
  "rgb": {
    "r": 95,
    "g": 106,
    "b": 234
  },
  "hsl": {
    "h": 235.252,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58473,
    "c": 0.19082,
    "h": 275.1
  },
  "luminance": 0.18681
}

Semantic roles & 50–950 ramp

primary
#5F6AEA
secondary
#EAE7BA
accent
#C90CD9
background
#FAF9FE
surface
#F3F1FD
border
#CDCBD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6AEA

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

Preview Lab → · Contrast checker → · Palette generator →

#5F6AEA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva