#5F7DE8#5F7DE8

#5F7DE8 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.164 H 269.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5F7DE8
RGBrgb(95, 125, 232)
HSLhsl(227, 75%, 64%)
HSVhsv(227, 59%, 91%)
CMYKcmyk(59.1%, 46.1%, 0%, 9%)
CIE-LABlab(54.99, 21.10, -57.58)
CIE-LCHlch(54.99, 61.32, 290.12°)
OKLaboklab(61.97% -0.0018 -0.1644)
OKLCHoklch(61.97% 0.164 269.4)
XYZxyz(26.6135, 22.9242, 79.3506)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DE8 #E8CA5F
analogous
#5FC2E8 #5F7DE8 #865FE8
triadic
#5F7DE8 #E85F7D #7DE85F
tetradic
#5F7DE8 #E85FC2 #E8CA5F #5FE886
square
#5F7DE8 #E85FC2 #E8CA5F #5FE886
split-complementary
#5F7DE8 #E8865F #C2E85F
monochromatic
#1A3BB3 #2952E0 #5F7DE8 #95A8F0 #CAD4F7

Accessibility & contrast

On white

3.76
#5F7DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#5F7DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DE8
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DE8#FFFFFF#000000##000000
##5F7DE81.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8AEC
Deuteranopia (green-blind)
#347EE6
Tritanopia (blue-blind)
#0095A7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7de8;
/* rgb */ color: rgb(95, 125, 232);
/* oklch */ color: oklch(62.0% 0.164 269.4);
Tailwind
colors: {
  custom: {
    50: '#97a2f0',
    500: '#5f7de8',
    950: '#000000',
  },
}
SCSS
$custom: #5f7de8;
$custom-light: #97a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7de8",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 232
  },
  "hsl": {
    "h": 226.861,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.6197,
    "c": 0.16438,
    "h": 269.4
  },
  "luminance": 0.22926
}

Semantic roles & 50–950 ramp

primary
#5F7DE8
secondary
#E9DFBA
accent
#AB0ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5F7DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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