#5F7EEA#5F7EEA

#5F7EEA is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.3% C 0.166 H 269.1°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5F7EEA
RGBrgb(95, 126, 234)
HSLhsl(227, 77%, 65%)
HSVhsv(227, 59%, 92%)
CMYKcmyk(59.4%, 46.2%, 0%, 8.2%)
CIE-LABlab(55.37, 21.15, -58.09)
CIE-LCHlch(55.37, 61.82, 290.01°)
OKLaboklab(62.3% -0.0026 -0.1659)
OKLCHoklch(62.3% 0.166 269.1)
XYZxyz(27.0265, 23.2929, 80.8977)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EEA #EACB5F
analogous
#5FC3EA #5F7EEA #865FEA
triadic
#5F7EEA #EA5F7E #7EEA5F
tetradic
#5F7EEA #EA5FC3 #EACB5F #5FEA86
square
#5F7EEA #EA5FC3 #EACB5F #5FEA86
split-complementary
#5F7EEA #EA865F #C3EA5F
monochromatic
#183BB7 #2952E3 #5F7EEA #95AAF1 #CBD5F8

Accessibility & contrast

On white

3.71
#5F7EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#5F7EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EEA
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EEA#FFFFFF#000000##000000
##5F7EEA1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8BEE
Deuteranopia (green-blind)
#347FE8
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7eea;
/* rgb */ color: rgb(95, 126, 234);
/* oklch */ color: oklch(62.3% 0.166 269.1);
Tailwind
colors: {
  custom: {
    50: '#97a3f1',
    500: '#5f7eea',
    950: '#000000',
  },
}
SCSS
$custom: #5f7eea;
$custom-light: #97a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7eea",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 226.619,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62297,
    "c": 0.16588,
    "h": 269.1
  },
  "luminance": 0.23295
}

Semantic roles & 50–950 ramp

primary
#5F7EEA
secondary
#EAE0BA
accent
#AB0CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5F7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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