#5F7AEA#5F7AEA

#5F7AEA is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.5% C 0.171 H 270.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5F7AEA
RGBrgb(95, 122, 234)
HSLhsl(228, 77%, 65%)
HSVhsv(228, 59%, 92%)
CMYKcmyk(59.4%, 47.9%, 0%, 8.2%)
CIE-LABlab(54.33, 23.58, -59.75)
CIE-LCHlch(54.33, 64.24, 291.54°)
OKLaboklab(61.51% 0.0015 -0.1708)
OKLCHoklch(61.51% 0.171 270.5)
XYZxyz(26.5252, 22.2903, 80.7306)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AEA #EACF5F
analogous
#5FC0EA #5F7AEA #895FEA
triadic
#5F7AEA #EA5F7A #7AEA5F
tetradic
#5F7AEA #EA5FC0 #EACF5F #5FEA89
square
#5F7AEA #EA5FC0 #EACF5F #5FEA89
split-complementary
#5F7AEA #EA895F #C0EA5F
monochromatic
#1837B7 #294DE3 #5F7AEA #95A7F1 #CBD4F8

Accessibility & contrast

On white

3.85
#5F7AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#5F7AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AEA
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AEA#FFFFFF#000000##000000
##5F7AEA1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4288EE
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f7aea;
/* rgb */ color: rgb(95, 122, 234);
/* oklch */ color: oklch(61.5% 0.171 270.5);
Tailwind
colors: {
  custom: {
    50: '#98a0f1',
    500: '#5f7aea',
    950: '#000000',
  },
}
SCSS
$custom: #5f7aea;
$custom-light: #98a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7aea",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 228.345,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61506,
    "c": 0.17082,
    "h": 270.5
  },
  "luminance": 0.22292
}

Semantic roles & 50–950 ramp

primary
#5F7AEA
secondary
#EAE1BA
accent
#B10CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F7AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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