#5F8CE7#5F8CE7

#5F8CE7 is a light, vivid blue. Relative luminance 0.270; OKLCH L 65.0% C 0.145 H 263.1°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5F8CE7
RGBrgb(95, 140, 231)
HSLhsl(220, 74%, 64%)
HSVhsv(220, 59%, 91%)
CMYKcmyk(58.9%, 39.4%, 0%, 9.4%)
CIE-LABlab(58.93, 11.73, -50.74)
CIE-LCHlch(58.93, 52.08, 283.02°)
OKLaboklab(64.98% -0.0175 -0.1441)
OKLCHoklch(64.98% 0.145 263.1)
XYZxyz(28.5162, 26.9562, 79.2861)
Luminance0.2696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8CE7 #E7BA5F
analogous
#5FD0E7 #5F8CE7 #765FE7
triadic
#5F8CE7 #E75F8C #8CE75F
tetradic
#5F8CE7 #E75FD0 #E7BA5F #5FE776
square
#5F8CE7 #E75FD0 #E7BA5F #5FE776
split-complementary
#5F8CE7 #E7765F #D0E75F
monochromatic
#1B4CB1 #2A66DF #5F8CE7 #94B2EF #C9D9F7

Accessibility & contrast

On white

3.29
#5F8CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#5F8CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8CE7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8CE7#FFFFFF#000000##000000
##5F8CE71.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EB
Deuteranopia (green-blind)
#5388E5
Tritanopia (blue-blind)
#00A0AE
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5f8ce7;
/* rgb */ color: rgb(95, 140, 231);
/* oklch */ color: oklch(65.0% 0.145 263.1);
Tailwind
colors: {
  custom: {
    50: '#97adef',
    500: '#5f8ce7',
    950: '#000000',
  },
}
SCSS
$custom: #5f8ce7;
$custom-light: #97adef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8ce7",
  "rgb": {
    "r": 95,
    "g": 140,
    "b": 231
  },
  "hsl": {
    "h": 220.147,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64978,
    "c": 0.14519,
    "h": 263.1
  },
  "luminance": 0.26959
}

Semantic roles & 50–950 ramp

primary
#5F8CE7
secondary
#E9D9B9
accent
#940FD6
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1016
muted
#7E7F84

Preview Lab

Preview with #5F8CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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