#5F7EE5#5F7EE5

#5F7EE5 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 62.0% C 0.159 H 268.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5F7EE5
RGBrgb(95, 126, 229)
HSLhsl(226, 72%, 64%)
HSVhsv(226, 59%, 90%)
CMYKcmyk(58.5%, 45%, 0%, 10.2%)
CIE-LABlab(55.08, 19.51, -55.76)
CIE-LCHlch(55.08, 59.07, 289.28°)
OKLaboklab(61.98% -0.0033 -0.159)
OKLCHoklch(61.98% 0.159 268.8)
XYZxyz(26.3183, 23.0096, 77.1680)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EE5 #E5C65F
analogous
#5FC1E5 #5F7EE5 #835FE5
triadic
#5F7EE5 #E55F7E #7EE55F
tetradic
#5F7EE5 #E55FC1 #E5C65F #5FE583
square
#5F7EE5 #E55FC1 #E5C65F #5FE583
split-complementary
#5F7EE5 #E5835F #C1E55F
monochromatic
#1C3EAD #2A54DC #5F7EE5 #94A8EE #C8D3F6

Accessibility & contrast

On white

3.75
#5F7EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5F7EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EE5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EE5#FFFFFF#000000##000000
##5F7EE51.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8AE9
Deuteranopia (green-blind)
#3A7EE3
Tritanopia (blue-blind)
#0095A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7ee5;
/* rgb */ color: rgb(95, 126, 229);
/* oklch */ color: oklch(62.0% 0.159 268.8);
Tailwind
colors: {
  custom: {
    50: '#97a3ee',
    500: '#5f7ee5',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ee5;
$custom-light: #97a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ee5",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 229
  },
  "hsl": {
    "h": 226.119,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61981,
    "c": 0.15905,
    "h": 268.8
  },
  "luminance": 0.23012
}

Semantic roles & 50–950 ramp

primary
#5F7EE5
secondary
#E8DDB8
accent
#A711D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5F7EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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