#5F7DEF#5F7DEF

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

Color values

HEX#5F7DEF
RGBrgb(95, 125, 239)
HSLhsl(228, 82%, 65%)
HSVhsv(228, 60%, 94%)
CMYKcmyk(60.3%, 47.7%, 0%, 6.3%)
CIE-LABlab(55.41, 23.41, -60.81)
CIE-LCHlch(55.41, 65.16, 291.05°)
OKLaboklab(62.42% -0.0009 -0.1739)
OKLCHoklch(62.42% 0.174 269.7)
XYZxyz(27.6277, 23.3298, 84.6918)
Luminance0.2333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DEF #EFD15F
analogous
#5FC5EF #5F7DEF #895FEF
triadic
#5F7DEF #EF5F7D #7DEF5F
tetradic
#5F7DEF #EF5FC5 #EFD15F #5FEF89
square
#5F7DEF #EF5FC5 #EFD15F #5FEF89
split-complementary
#5F7DEF #EF895F #C5EF5F
monochromatic
#1337C0 #2750E9 #5F7DEF #97AAF5 #CED7FA

Accessibility & contrast

On white

3.71
#5F7DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#5F7DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DEF
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DEF#FFFFFF#000000##000000
##5F7DEF1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#438BF3
Deuteranopia (green-blind)
#297FED
Tritanopia (blue-blind)
#0097AB
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7def;
/* rgb */ color: rgb(95, 125, 239);
/* oklch */ color: oklch(62.4% 0.174 269.7);
Tailwind
colors: {
  custom: {
    50: '#98a2f5',
    500: '#5f7def',
    950: '#000000',
  },
}
SCSS
$custom: #5f7def;
$custom-light: #98a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7def",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 227.5,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62421,
    "c": 0.17388,
    "h": 269.7
  },
  "luminance": 0.23332
}

Semantic roles & 50–950 ramp

primary
#5F7DEF
secondary
#EDE3BD
accent
#B107DE
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5F7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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