#5F7EFE#5F7EFE

#5F7EFE is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.6% C 0.193 H 269.9°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5F7EFE
RGBrgb(95, 126, 254)
HSLhsl(228, 99%, 68%)
HSVhsv(228, 63%, 100%)
CMYKcmyk(62.6%, 50.4%, 0%, 0.4%)
CIE-LABlab(56.59, 27.77, -67.21)
CIE-LCHlch(56.59, 72.72, 292.45°)
OKLaboklab(63.62% -0.0003 -0.1927)
OKLCHoklch(63.62% 0.193 269.9)
XYZxyz(30.0635, 24.5077, 96.8929)
Luminance0.2451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EFE #FEDF5F
analogous
#5FCDFE #5F7EFE #8F5FFE
triadic
#5F7EFE #FE5F7E #7EFE5F
tetradic
#5F7EFE #FE5FCD #FEDF5F #5FFE8F
square
#5F7EFE #FE5FCD #FEDF5F #5FFE8F
split-complementary
#5F7EFE #FE8F5F #CDFE5F
monochromatic
#012DE1 #224DFE #5F7EFE #9CAFFE #D9E0FF

Accessibility & contrast

On white

3.56
#5F7EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#5F7EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EFE
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EFE#FFFFFF#000000##000000
##5F7EFE1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#0081FB
Tritanopia (blue-blind)
#009CB2
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f7efe;
/* rgb */ color: rgb(95, 126, 254);
/* oklch */ color: oklch(63.6% 0.193 269.9);
Tailwind
colors: {
  custom: {
    50: '#9ba3ff',
    500: '#5f7efe',
    950: '#000000',
  },
}
SCSS
$custom: #5f7efe;
$custom-light: #9ba3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7efe",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 228.302,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63615,
    "c": 0.1927,
    "h": 269.9
  },
  "luminance": 0.2451
}

Semantic roles & 50–950 ramp

primary
#5F7EFE
secondary
#F4EBC4
accent
#B900E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0F18
muted
#7F7E86

Preview Lab

Preview with #5F7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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