#5F7DF2#5F7DF2

#5F7DF2 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.6% C 0.178 H 269.8°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5F7DF2
RGBrgb(95, 125, 242)
HSLhsl(228, 85%, 66%)
HSVhsv(228, 61%, 95%)
CMYKcmyk(60.7%, 48.3%, 0%, 5.1%)
CIE-LABlab(55.59, 24.40, -62.19)
CIE-LCHlch(55.59, 66.80, 291.42°)
OKLaboklab(62.62% -0.0006 -0.1779)
OKLCHoklch(62.62% 0.178 269.8)
XYZxyz(28.0745, 23.5086, 87.0453)
Luminance0.2351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DF2 #F2D45F
analogous
#5FC6F2 #5F7DF2 #8A5FF2
triadic
#5F7DF2 #F25F7D #7DF25F
tetradic
#5F7DF2 #F25FC6 #F2D45F #5FF28A
square
#5F7DF2 #F25FC6 #F2D45F #5FF28A
split-complementary
#5F7DF2 #F28A5F #C6F25F
monochromatic
#1035C6 #264FED #5F7DF2 #98ABF7 #D0D9FB

Accessibility & contrast

On white

3.68
#5F7DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5F7DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DF2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DF2#FFFFFF#000000##000000
##5F7DF21.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#408CF6
Deuteranopia (green-blind)
#227FF0
Tritanopia (blue-blind)
#0098AC
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7df2;
/* rgb */ color: rgb(95, 125, 242);
/* oklch */ color: oklch(62.6% 0.178 269.8);
Tailwind
colors: {
  custom: {
    50: '#99a2f7',
    500: '#5f7df2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7df2;
$custom-light: #99a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7df2",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 227.755,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62618,
    "c": 0.17792,
    "h": 269.8
  },
  "luminance": 0.23511
}

Semantic roles & 50–950 ramp

primary
#5F7DF2
secondary
#EFE5BE
accent
#B404E1
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5F7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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