#5F7FE3#5F7FE3

#5F7FE3 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.1% C 0.155 H 268.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5F7FE3
RGBrgb(95, 127, 227)
HSLhsl(225, 70%, 63%)
HSVhsv(225, 58%, 89%)
CMYKcmyk(58.1%, 44.1%, 0%, 11%)
CIE-LABlab(55.23, 18.24, -54.40)
CIE-LCHlch(55.23, 57.38, 288.54°)
OKLaboklab(62.06% -0.0046 -0.155)
OKLCHoklch(62.06% 0.155 268.3)
XYZxyz(26.1692, 23.1556, 75.7486)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FE3 #E3C35F
analogous
#5FC1E3 #5F7FE3 #815FE3
triadic
#5F7FE3 #E35F7F #7FE35F
tetradic
#5F7FE3 #E35FC1 #E3C35F #5FE381
square
#5F7FE3 #E35FC1 #E3C35F #5FE381
split-complementary
#5F7FE3 #E3815F #C1E35F
monochromatic
#1E40AA #2B55DA #5F7FE3 #93A9EC #C7D2F5

Accessibility & contrast

On white

3.73
#5F7FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5F7FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FE3
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FE3#FFFFFF#000000##000000
##5F7FE31.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#528BE7
Deuteranopia (green-blind)
#3F7FE1
Tritanopia (blue-blind)
#0095A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7fe3;
/* rgb */ color: rgb(95, 127, 227);
/* oklch */ color: oklch(62.1% 0.155 268.3);
Tailwind
colors: {
  custom: {
    50: '#96a3ec',
    500: '#5f7fe3',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fe3;
$custom-light: #96a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fe3",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 227
  },
  "hsl": {
    "h": 225.455,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62059,
    "c": 0.15509,
    "h": 268.3
  },
  "luminance": 0.23158
}

Semantic roles & 50–950 ramp

primary
#5F7FE3
secondary
#E7DBB7
accent
#A413D2
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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