#5F7CF2#5F7CF2

#5F7CF2 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.4% C 0.179 H 270.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5F7CF2
RGBrgb(95, 124, 242)
HSLhsl(228, 85%, 66%)
HSVhsv(228, 61%, 95%)
CMYKcmyk(60.7%, 48.8%, 0%, 5.1%)
CIE-LABlab(55.34, 25.01, -62.60)
CIE-LCHlch(55.34, 67.41, 291.78°)
OKLaboklab(62.42% 0.0004 -0.1791)
OKLCHoklch(62.42% 0.179 270.1)
XYZxyz(27.9486, 23.2567, 87.0033)
Luminance0.2326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CF2 #F2D55F
analogous
#5FC5F2 #5F7CF2 #8B5FF2
triadic
#5F7CF2 #F25F7C #7CF25F
tetradic
#5F7CF2 #F25FC5 #F2D55F #5FF28B
square
#5F7CF2 #F25FC5 #F2D55F #5FF28B
split-complementary
#5F7CF2 #F28B5F #C5F25F
monochromatic
#1034C6 #264EED #5F7CF2 #98AAF7 #D0D9FB

Accessibility & contrast

On white

3.72
#5F7CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#5F7CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CF2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CF2#FFFFFF#000000##000000
##5F7CF21.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8BF6
Deuteranopia (green-blind)
#1E7EF0
Tritanopia (blue-blind)
#0097AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7cf2;
/* rgb */ color: rgb(95, 124, 242);
/* oklch */ color: oklch(62.4% 0.179 270.1);
Tailwind
colors: {
  custom: {
    50: '#99a1f7',
    500: '#5f7cf2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cf2;
$custom-light: #99a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cf2",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 228.163,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62423,
    "c": 0.17915,
    "h": 270.1
  },
  "luminance": 0.23259
}

Semantic roles & 50–950 ramp

primary
#5F7CF2
secondary
#EFE5BE
accent
#B604E1
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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