#5F7FE5#5F7FE5

#5F7FE5 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.2% C 0.158 H 268.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5F7FE5
RGBrgb(95, 127, 229)
HSLhsl(226, 72%, 64%)
HSVhsv(226, 59%, 90%)
CMYKcmyk(58.5%, 44.5%, 0%, 10.2%)
CIE-LABlab(55.35, 18.90, -55.34)
CIE-LCHlch(55.35, 58.48, 288.86°)
OKLaboklab(62.18% -0.0043 -0.1578)
OKLCHoklch(62.18% 0.158 268.4)
XYZxyz(26.4468, 23.2666, 77.2108)
Luminance0.2327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FE5 #E5C55F
analogous
#5FC2E5 #5F7FE5 #825FE5
triadic
#5F7FE5 #E55F7F #7FE55F
tetradic
#5F7FE5 #E55FC2 #E5C55F #5FE582
square
#5F7FE5 #E55FC2 #E5C55F #5FE582
split-complementary
#5F7FE5 #E5825F #C2E55F
monochromatic
#1C3FAD #2A55DC #5F7FE5 #94A9EE #C8D3F6

Accessibility & contrast

On white

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

On black

5.65
#5F7FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FE5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FE5#FFFFFF#000000##000000
##5F7FE51.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#508BE9
Deuteranopia (green-blind)
#3D7FE3
Tritanopia (blue-blind)
#0096A7
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7fe5;
/* rgb */ color: rgb(95, 127, 229);
/* oklch */ color: oklch(62.2% 0.158 268.4);
Tailwind
colors: {
  custom: {
    50: '#97a3ee',
    500: '#5f7fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fe5;
$custom-light: #97a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fe5",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 225.672,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62183,
    "c": 0.15783,
    "h": 268.4
  },
  "luminance": 0.23269
}

Semantic roles & 50–950 ramp

primary
#5F7FE5
secondary
#E8DCB8
accent
#A611D4
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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