#5F7FF2#5F7FF2

#5F7FF2 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.0% C 0.175 H 269.2°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5F7FF2
RGBrgb(95, 127, 242)
HSLhsl(227, 85%, 66%)
HSVhsv(227, 61%, 95%)
CMYKcmyk(60.7%, 47.5%, 0%, 5.1%)
CIE-LABlab(56.11, 23.19, -61.36)
CIE-LCHlch(56.11, 65.59, 290.70°)
OKLaboklab(63.01% -0.0025 -0.1755)
OKLCHoklch(63.01% 0.175 269.2)
XYZxyz(28.3303, 24.0200, 87.1306)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FF2 #F2D25F
analogous
#5FC8F2 #5F7FF2 #885FF2
triadic
#5F7FF2 #F25F7F #7FF25F
tetradic
#5F7FF2 #F25FC8 #F2D25F #5FF288
square
#5F7FF2 #F25FC8 #F2D25F #5FF288
split-complementary
#5F7FF2 #F2885F #C8F25F
monochromatic
#1038C6 #2652ED #5F7FF2 #98ACF7 #D0DAFB

Accessibility & contrast

On white

3.62
#5F7FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#5F7FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FF2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FF2#FFFFFF#000000##000000
##5F7FF21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#458DF6
Deuteranopia (green-blind)
#2980F0
Tritanopia (blue-blind)
#0099AD
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5f7ff2;
/* rgb */ color: rgb(95, 127, 242);
/* oklch */ color: oklch(63.0% 0.175 269.2);
Tailwind
colors: {
  custom: {
    50: '#99a3f7',
    500: '#5f7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ff2;
$custom-light: #99a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ff2",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 226.939,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6301,
    "c": 0.17548,
    "h": 269.2
  },
  "luminance": 0.24022
}

Semantic roles & 50–950 ramp

primary
#5F7FF2
secondary
#EFE4BE
accent
#B104E1
background
#FAFAFF
surface
#F3F3FF
border
#CDCDD7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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