#5F7ECB#5F7ECB

#5F7ECB is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.4% C 0.123 H 266.2°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F7ECB
RGBrgb(95, 126, 203)
HSLhsl(223, 51%, 58%)
HSVhsv(223, 53%, 80%)
CMYKcmyk(53.2%, 37.9%, 0%, 20.4%)
CIE-LABlab(53.67, 11.08, -43.36)
CIE-LCHlch(53.67, 44.75, 284.34°)
OKLaboklab(60.44% -0.0081 -0.1227)
OKLCHoklch(60.44% 0.123 266.2)
XYZxyz(22.9561, 21.6647, 59.4604)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7ECB #CBAC5F
analogous
#5FB4CB #5F7ECB #765FCB
triadic
#5F7ECB #CB5F7E #7ECB5F
tetradic
#5F7ECB #CB5FB4 #CBAC5F #5FCB76
square
#5F7ECB #CB5FB4 #CBAC5F #5FCB76
split-complementary
#5F7ECB #CB765F #B4CB5F
monochromatic
#2B4585 #3A5DB3 #5F7ECB #8DA3DA #BBC8E9

Accessibility & contrast

On white

3.94
#5F7ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5F7ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7ECB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7ECB#FFFFFF#000000##000000
##5F7ECB1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F85CE
Deuteranopia (green-blind)
#537CC9
Tritanopia (blue-blind)
#288F9B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f7ecb;
/* rgb */ color: rgb(95, 126, 203);
/* oklch */ color: oklch(60.4% 0.123 266.2);
Tailwind
colors: {
  custom: {
    50: '#93a3db',
    500: '#5f7ecb',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ecb;
$custom-light: #93a3db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ecb",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 222.778,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60436,
    "c": 0.12294,
    "h": 266.2
  },
  "luminance": 0.21666
}

Semantic roles & 50–950 ramp

primary
#5F7ECB
secondary
#D8CCAD
accent
#B24DDA
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0F15
muted
#7E7E83

Preview Lab

Preview with #5F7ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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