#5F7BE7#5F7BE7

#5F7BE7 is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.5% C 0.165 H 270.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F7BE7
RGBrgb(95, 123, 231)
HSLhsl(228, 74%, 64%)
HSVhsv(228, 59%, 91%)
CMYKcmyk(58.9%, 46.8%, 0%, 9.4%)
CIE-LABlab(54.41, 21.99, -57.95)
CIE-LCHlch(54.41, 61.98, 290.78°)
OKLaboklab(61.51% 0.0001 -0.1655)
OKLCHoklch(61.51% 0.165 270)
XYZxyz(26.2213, 22.3662, 78.5211)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BE7 #E7CB5F
analogous
#5FBFE7 #5F7BE7 #875FE7
triadic
#5F7BE7 #E75F7B #7BE75F
tetradic
#5F7BE7 #E75FBF #E7CB5F #5FE787
square
#5F7BE7 #E75FBF #E7CB5F #5FE787
split-complementary
#5F7BE7 #E7875F #BFE75F
monochromatic
#1B3AB1 #2A4FDF #5F7BE7 #94A7EF #C9D3F7

Accessibility & contrast

On white

3.84
#5F7BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#5F7BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BE7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BE7#FFFFFF#000000##000000
##5F7BE71.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4788EB
Deuteranopia (green-blind)
#317CE5
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f7be7;
/* rgb */ color: rgb(95, 123, 231);
/* oklch */ color: oklch(61.5% 0.165 270.0);
Tailwind
colors: {
  custom: {
    50: '#97a0ef',
    500: '#5f7be7',
    950: '#000000',
  },
}
SCSS
$custom: #5f7be7;
$custom-light: #97a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7be7",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 231
  },
  "hsl": {
    "h": 227.647,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61509,
    "c": 0.16549,
    "h": 270
  },
  "luminance": 0.22368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F7BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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