#5F6FEA#5F6FEA

#5F6FEA is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.4% C 0.185 H 273.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5F6FEA
RGBrgb(95, 111, 234)
HSLhsl(233, 77%, 65%)
HSVhsv(233, 59%, 92%)
CMYKcmyk(59.4%, 52.6%, 0%, 8.2%)
CIE-LABlab(51.54, 30.29, -64.25)
CIE-LCHlch(51.54, 71.03, 295.24°)
OKLaboklab(59.4% 0.0123 -0.1841)
OKLCHoklch(59.4% 0.185 273.8)
XYZxyz(25.2502, 19.7403, 80.3056)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6FEA #EADA5F
analogous
#5FB4EA #5F6FEA #955FEA
triadic
#5F6FEA #EA5F6F #6FEA5F
tetradic
#5F6FEA #EA5FB4 #EADA5F #5FEA95
square
#5F6FEA #EA5FB4 #EADA5F #5FEA95
split-complementary
#5F6FEA #EA955F #B4EA5F
monochromatic
#182AB7 #293EE3 #5F6FEA #95A0F1 #CBD0F8

Accessibility & contrast

On white

4.24
#5F6FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5F6FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6FEA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6FEA#FFFFFF#000000##000000
##5F6FEA1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2281EE
Deuteranopia (green-blind)
#0075E7
Tritanopia (blue-blind)
#008CA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f6fea;
/* rgb */ color: rgb(95, 111, 234);
/* oklch */ color: oklch(59.4% 0.185 273.8);
Tailwind
colors: {
  custom: {
    50: '#9898f1',
    500: '#5f6fea',
    950: '#000000',
  },
}
SCSS
$custom: #5f6fea;
$custom-light: #9898f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6fea",
  "rgb": {
    "r": 95,
    "g": 111,
    "b": 234
  },
  "hsl": {
    "h": 233.094,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59396,
    "c": 0.18456,
    "h": 273.8
  },
  "luminance": 0.19742
}

Semantic roles & 50–950 ramp

primary
#5F6FEA
secondary
#EAE5BA
accent
#C10CD9
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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