#5F71C8#5F71C8

#5F71C8 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.135 H 272.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5F71C8
RGBrgb(95, 113, 200)
HSLhsl(230, 49%, 58%)
HSVhsv(230, 53%, 78%)
CMYKcmyk(52.5%, 43.5%, 0%, 21.6%)
CIE-LABlab(49.99, 18.05, -47.48)
CIE-LCHlch(49.99, 50.80, 290.81°)
OKLaboklab(57.56% 0.0063 -0.1349)
OKLCHoklch(57.56% 0.135 272.7)
XYZxyz(21.0464, 18.4119, 57.0772)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71C8 #C8B65F
analogous
#5FA6C8 #5F71C8 #815FC8
triadic
#5F71C8 #C85F71 #71C85F
tetradic
#5F71C8 #C85FA6 #C8B65F #5FC881
square
#5F71C8 #C85FA6 #C8B65F #5FC881
split-complementary
#5F71C8 #C8815F #A6C85F
monochromatic
#2C3B80 #3C4FAE #5F71C8 #8D99D8 #BAC2E7

Accessibility & contrast

On white

4.48
#5F71C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5F71C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71C8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71C8#FFFFFF#000000##000000
##5F71C81.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7CCB
Deuteranopia (green-blind)
#4173C6
Tritanopia (blue-blind)
#2E8493
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5f71c8;
/* rgb */ color: rgb(95, 113, 200);
/* oklch */ color: oklch(57.6% 0.135 272.7);
Tailwind
colors: {
  custom: {
    50: '#9399d9',
    500: '#5f71c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f71c8;
$custom-light: #9399d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71c8",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 229.714,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57558,
    "c": 0.13501,
    "h": 272.7
  },
  "luminance": 0.18413
}

Semantic roles & 50–950 ramp

primary
#5F71C8
secondary
#D6CFAC
accent
#C14FD8
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5F71C8

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

Preview Lab → · Contrast checker → · Palette generator →

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