#5F5FC8#5F5FC8

#5F5FC8 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.0% C 0.159 H 279.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F5FC8
RGBrgb(95, 95, 200)
HSLhsl(240, 49%, 58%)
HSVhsv(240, 53%, 78%)
CMYKcmyk(52.5%, 52.5%, 0%, 21.6%)
CIE-LABlab(45.34, 29.15, -54.93)
CIE-LCHlch(45.34, 62.19, 297.95°)
OKLaboklab(54.04% 0.0267 -0.1569)
OKLCHoklch(54.04% 0.159 279.7)
XYZxyz(19.2336, 14.7863, 56.4729)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FC8 #C8C85F
analogous
#5F93C8 #5F5FC8 #935FC8
triadic
#5F5FC8 #C85F5F #5FC85F
tetradic
#5F5FC8 #C85F93 #C8C85F #5FC893
square
#5F5FC8 #C85F93 #C8C85F #5FC893
split-complementary
#5F5FC8 #C8935F #93C85F
monochromatic
#2C2C80 #3C3CAE #5F5FC8 #8D8DD8 #BABAE7

Accessibility & contrast

On white

5.31
#5F5FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5F5FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FC8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FC8#FFFFFF#000000##FFFFFF
##5F5FC81.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266FCC
Deuteranopia (green-blind)
#1867C6
Tritanopia (blue-blind)
#32768A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5fc8;
/* rgb */ color: rgb(95, 95, 200);
/* oklch */ color: oklch(54.0% 0.159 279.7);
Tailwind
colors: {
  custom: {
    50: '#948cd9',
    500: '#5f5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fc8;
$custom-light: #948cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fc8",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 240,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54037,
    "c": 0.15915,
    "h": 279.7
  },
  "luminance": 0.14787
}

Semantic roles & 50–950 ramp

primary
#5F5FC8
secondary
#D6D6AC
accent
#D84FD8
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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