#5F7AE7#5F7AE7

#5F7AE7 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.3% C 0.167 H 270.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5F7AE7
RGBrgb(95, 122, 231)
HSLhsl(228, 74%, 64%)
HSVhsv(228, 59%, 91%)
CMYKcmyk(58.9%, 47.2%, 0%, 9.4%)
CIE-LABlab(54.15, 22.60, -58.37)
CIE-LCHlch(54.15, 62.59, 291.16°)
OKLaboklab(61.31% 0.0011 -0.1667)
OKLCHoklch(61.31% 0.167 270.4)
XYZxyz(26.0978, 22.1194, 78.4800)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AE7 #E7CC5F
analogous
#5FBEE7 #5F7AE7 #885FE7
triadic
#5F7AE7 #E75F7A #7AE75F
tetradic
#5F7AE7 #E75FBE #E7CC5F #5FE788
square
#5F7AE7 #E75FBE #E7CC5F #5FE788
split-complementary
#5F7AE7 #E7885F #BEE75F
monochromatic
#1B38B1 #2A4EDF #5F7AE7 #94A6EF #C9D2F7

Accessibility & contrast

On white

3.87
#5F7AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5F7AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AE7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AE7#FFFFFF#000000##000000
##5F7AE71.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4488EB
Deuteranopia (green-blind)
#2E7CE5
Tritanopia (blue-blind)
#0093A5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f7ae7;
/* rgb */ color: rgb(95, 122, 231);
/* oklch */ color: oklch(61.3% 0.167 270.4);
Tailwind
colors: {
  custom: {
    50: '#97a0ef',
    500: '#5f7ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ae7;
$custom-light: #97a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ae7",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 231
  },
  "hsl": {
    "h": 228.088,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.16673,
    "h": 270.4
  },
  "luminance": 0.22121
}

Semantic roles & 50–950 ramp

primary
#5F7AE7
secondary
#E9DFB9
accent
#AF0FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F7AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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