#5F7EF2#5F7EF2

#5F7EF2 is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.8% C 0.177 H 269.5°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5F7EF2
RGBrgb(95, 126, 242)
HSLhsl(227, 85%, 66%)
HSVhsv(227, 61%, 95%)
CMYKcmyk(60.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(55.85, 23.79, -61.77)
CIE-LCHlch(55.85, 66.20, 291.07°)
OKLaboklab(62.81% -0.0015 -0.1767)
OKLCHoklch(62.81% 0.177 269.5)
XYZxyz(28.2018, 23.7630, 87.0877)
Luminance0.2377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EF2 #F2D35F
analogous
#5FC7F2 #5F7EF2 #895FF2
triadic
#5F7EF2 #F25F7E #7EF25F
tetradic
#5F7EF2 #F25FC7 #F2D35F #5FF289
square
#5F7EF2 #F25FC7 #F2D35F #5FF289
split-complementary
#5F7EF2 #F2895F #C7F25F
monochromatic
#1037C6 #2650ED #5F7EF2 #98ACF7 #D0D9FB

Accessibility & contrast

On white

3.65
#5F7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5F7EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EF2
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EF2#FFFFFF#000000##000000
##5F7EF21.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#2680F0
Tritanopia (blue-blind)
#0099AC
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5f7ef2;
/* rgb */ color: rgb(95, 126, 242);
/* oklch */ color: oklch(62.8% 0.177 269.5);
Tailwind
colors: {
  custom: {
    50: '#99a3f7',
    500: '#5f7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ef2;
$custom-light: #99a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ef2",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 227.347,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62814,
    "c": 0.1767,
    "h": 269.5
  },
  "luminance": 0.23765
}

Semantic roles & 50–950 ramp

primary
#5F7EF2
secondary
#EFE4BE
accent
#B304E1
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5F7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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