#5F7DEB#5F7DEB

#5F7DEB is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.2% C 0.168 H 269.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5F7DEB
RGBrgb(95, 125, 235)
HSLhsl(227, 78%, 65%)
HSVhsv(227, 60%, 92%)
CMYKcmyk(59.6%, 46.8%, 0%, 7.8%)
CIE-LABlab(55.17, 22.09, -58.97)
CIE-LCHlch(55.17, 62.97, 290.53°)
OKLaboklab(62.16% -0.0014 -0.1685)
OKLCHoklch(62.16% 0.168 269.5)
XYZxyz(27.0433, 23.0961, 81.6140)
Luminance0.2310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DEB #EBCD5F
analogous
#5FC3EB #5F7DEB #875FEB
triadic
#5F7DEB #EB5F7D #7DEB5F
tetradic
#5F7DEB #EB5FC3 #EBCD5F #5FEB87
square
#5F7DEB #EB5FC3 #EBCD5F #5FEB87
split-complementary
#5F7DEB #EB875F #C3EB5F
monochromatic
#173AB9 #2951E4 #5F7DEB #95A9F2 #CCD5F9

Accessibility & contrast

On white

3.74
#5F7DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#5F7DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DEB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DEB#FFFFFF#000000##000000
##5F7DEB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BEF
Deuteranopia (green-blind)
#307EE9
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7deb;
/* rgb */ color: rgb(95, 125, 235);
/* oklch */ color: oklch(62.2% 0.168 269.5);
Tailwind
colors: {
  custom: {
    50: '#98a2f2',
    500: '#5f7deb',
    950: '#000000',
  },
}
SCSS
$custom: #5f7deb;
$custom-light: #98a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7deb",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 227.143,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62162,
    "c": 0.16847,
    "h": 269.5
  },
  "luminance": 0.23098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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