#5F6EFE#5F6EFE

#5F6EFE is a mid, highly saturated blue. Relative luminance 0.207; OKLCH L 60.7% C 0.212 H 273.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F6EFE
RGBrgb(95, 110, 254)
HSLhsl(234, 99%, 68%)
HSVhsv(234, 63%, 100%)
CMYKcmyk(62.6%, 56.7%, 0%, 0.4%)
CIE-LABlab(52.66, 37.44, -73.57)
CIE-LCHlch(52.66, 82.55, 296.97°)
OKLaboklab(60.67% 0.0139 -0.2116)
OKLCHoklch(60.67% 0.212 273.8)
XYZxyz(28.1787, 20.7381, 96.2646)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6EFE #FEEF5F
analogous
#5FBDFE #5F6EFE #9F5FFE
triadic
#5F6EFE #FE5F6E #6EFE5F
tetradic
#5F6EFE #FE5FBD #FEEF5F #5FFE9F
square
#5F6EFE #FE5FBD #FEEF5F #5FFE9F
split-complementary
#5F6EFE #FE9F5F #BDFE5F
monochromatic
#0117E1 #2237FE #5F6EFE #9CA5FE #D9DCFF

Accessibility & contrast

On white

4.08
#5F6EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F6EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6EFE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6EFE#FFFFFF#000000##000000
##5F6EFE1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#0077FB
Tritanopia (blue-blind)
#0091AB
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f6efe;
/* rgb */ color: rgb(95, 110, 254);
/* oklch */ color: oklch(60.7% 0.212 273.8);
Tailwind
colors: {
  custom: {
    50: '#9b97ff',
    500: '#5f6efe',
    950: '#000000',
  },
}
SCSS
$custom: #5f6efe;
$custom-light: #9b97ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6efe",
  "rgb": {
    "r": 95,
    "g": 110,
    "b": 254
  },
  "hsl": {
    "h": 234.34,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.60665,
    "c": 0.21204,
    "h": 273.8
  },
  "luminance": 0.20741
}

Semantic roles & 50–950 ramp

primary
#5F6EFE
secondary
#F4F0C4
accent
#D000E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D18
muted
#7F7E86

Preview Lab

Preview with #5F6EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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