#5F5FCA#5F5FCA

#5F5FCA is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.2% C 0.162 H 279.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5F5FCA
RGBrgb(95, 95, 202)
HSLhsl(240, 50%, 58%)
HSVhsv(240, 53%, 79%)
CMYKcmyk(53%, 53%, 0%, 20.8%)
CIE-LABlab(45.47, 29.78, -55.87)
CIE-LCHlch(45.47, 63.32, 298.06°)
OKLaboklab(54.18% 0.0268 -0.1597)
OKLCHoklch(54.18% 0.162 279.5)
XYZxyz(19.4689, 14.8804, 57.7120)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FCA #CACA5F
analogous
#5F94CA #5F5FCA #945FCA
triadic
#5F5FCA #CA5F5F #5FCA5F
tetradic
#5F5FCA #CA5F94 #CACA5F #5FCA94
square
#5F5FCA #CA5F94 #CACA5F #5FCA94
split-complementary
#5F5FCA #CA945F #94CA5F
monochromatic
#2B2B83 #3B3BB1 #5F5FCA #8D8DD9 #BBBBE8

Accessibility & contrast

On white

5.28
#5F5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5F5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FCA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FCA#FFFFFF#000000##FFFFFF
##5F5FCA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2370CE
Deuteranopia (green-blind)
#1267C8
Tritanopia (blue-blind)
#30778B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5fca;
/* rgb */ color: rgb(95, 95, 202);
/* oklch */ color: oklch(54.2% 0.162 279.5);
Tailwind
colors: {
  custom: {
    50: '#948cdb',
    500: '#5f5fca',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fca;
$custom-light: #948cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fca",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54175,
    "c": 0.1619,
    "h": 279.5
  },
  "luminance": 0.14882
}

Semantic roles & 50–950 ramp

primary
#5F5FCA
secondary
#D8D8AD
accent
#DA4EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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