#5F7DEC#5F7DEC

#5F7DEC is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.2% C 0.170 H 269.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5F7DEC
RGBrgb(95, 125, 236)
HSLhsl(227, 79%, 65%)
HSVhsv(227, 60%, 93%)
CMYKcmyk(59.7%, 47%, 0%, 7.5%)
CIE-LABlab(55.23, 22.42, -59.43)
CIE-LCHlch(55.23, 63.52, 290.67°)
OKLaboklab(62.23% -0.0013 -0.1698)
OKLCHoklch(62.23% 0.17 269.6)
XYZxyz(27.1882, 23.1540, 82.3770)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DEC #ECCE5F
analogous
#5FC4EC #5F7DEC #885FEC
triadic
#5F7DEC #EC5F7D #7DEC5F
tetradic
#5F7DEC #EC5FC4 #ECCE5F #5FEC88
square
#5F7DEC #EC5FC4 #ECCE5F #5FEC88
split-complementary
#5F7DEC #EC885F #C4EC5F
monochromatic
#1639BA #2851E6 #5F7DEC #96A9F2 #CCD6F9

Accessibility & contrast

On white

3.73
#5F7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5F7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DEC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DEC#FFFFFF#000000##000000
##5F7DEC1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#468BF0
Deuteranopia (green-blind)
#2E7EEA
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7dec;
/* rgb */ color: rgb(95, 125, 236);
/* oklch */ color: oklch(62.2% 0.170 269.6);
Tailwind
colors: {
  custom: {
    50: '#98a2f3',
    500: '#5f7dec',
    950: '#000000',
  },
}
SCSS
$custom: #5f7dec;
$custom-light: #98a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7dec",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 227.234,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62227,
    "c": 0.16982,
    "h": 269.6
  },
  "luminance": 0.23156
}

Semantic roles & 50–950 ramp

primary
#5F7DEC
secondary
#EBE1BB
accent
#AF0ADB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5F7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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