#5F5FC0#5F5FC0

#5F5FC0 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.5% C 0.148 H 280.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5F5FC0
RGBrgb(95, 95, 192)
HSLhsl(240, 43%, 56%)
HSVhsv(240, 51%, 75%)
CMYKcmyk(50.5%, 50.5%, 0%, 24.7%)
CIE-LABlab(44.83, 26.63, -51.12)
CIE-LCHlch(44.83, 57.64, 297.52°)
OKLaboklab(53.49% 0.0261 -0.1457)
OKLCHoklch(53.49% 0.148 280.2)
XYZxyz(18.3230, 14.4221, 51.6772)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FC0 #C0C05F
analogous
#5F90C0 #5F5FC0 #905FC0
triadic
#5F5FC0 #C05F5F #5FC05F
tetradic
#5F5FC0 #C05F90 #C0C05F #5FC090
square
#5F5FC0 #C05F90 #C0C05F #5FC090
split-complementary
#5F5FC0 #C0905F #90C05F
monochromatic
#2F2F76 #4040A2 #5F5FC0 #8B8BD1 #B7B7E3

Accessibility & contrast

On white

5.41
#5F5FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5F5FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FC0
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FC0#FFFFFF#000000##FFFFFF
##5F5FC01.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306EC3
Deuteranopia (green-blind)
#2766BE
Tritanopia (blue-blind)
#397486
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f5fc0;
/* rgb */ color: rgb(95, 95, 192);
/* oklch */ color: oklch(53.5% 0.148 280.2);
Tailwind
colors: {
  custom: {
    50: '#938cd4',
    500: '#5f5fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fc0;
$custom-light: #938cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fc0",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 240,
    "s": 43.498,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53493,
    "c": 0.14801,
    "h": 280.2
  },
  "luminance": 0.14423
}

Semantic roles & 50–950 ramp

primary
#5F5FC0
secondary
#D1D1A9
accent
#D355D3
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0C14
muted
#7E7D83

Preview Lab

Preview with #5F5FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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