#5F71F3#5F71F3

#5F71F3 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.4% C 0.194 H 273.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F71F3
RGBrgb(95, 113, 243)
HSLhsl(233, 86%, 66%)
HSVhsv(233, 61%, 95%)
CMYKcmyk(60.9%, 53.5%, 0%, 4.7%)
CIE-LABlab(52.63, 32.03, -67.51)
CIE-LCHlch(52.63, 74.72, 295.38°)
OKLaboklab(60.4% 0.0109 -0.1937)
OKLCHoklch(60.4% 0.194 273.2)
XYZxyz(26.7968, 20.7120, 87.3623)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71F3 #F3E15F
analogous
#5FBBF3 #5F71F3 #975FF3
triadic
#5F71F3 #F35F71 #71F35F
tetradic
#5F71F3 #F35FBB #F3E15F #5FF397
square
#5F71F3 #F35FBB #F3E15F #5FF397
split-complementary
#5F71F3 #F3975F #BBF35F
monochromatic
#0F26C9 #263EEF #5F71F3 #98A4F7 #D1D6FC

Accessibility & contrast

On white

4.08
#5F71F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5F71F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71F3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71F3#FFFFFF#000000##000000
##5F71F31.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1584F8
Deuteranopia (green-blind)
#0077F0
Tritanopia (blue-blind)
#0090A7
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f71f3;
/* rgb */ color: rgb(95, 113, 243);
/* oklch */ color: oklch(60.4% 0.194 273.2);
Tailwind
colors: {
  custom: {
    50: '#9999f8',
    500: '#5f71f3',
    950: '#000000',
  },
}
SCSS
$custom: #5f71f3;
$custom-light: #9999f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71f3",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 243
  },
  "hsl": {
    "h": 232.703,
    "s": 86.047,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60404,
    "c": 0.19405,
    "h": 273.2
  },
  "luminance": 0.20714
}

Semantic roles & 50–950 ramp

primary
#5F71F3
secondary
#EFE9BF
accent
#C703E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71F3

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

Preview Lab → · Contrast checker → · Palette generator →

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