#5F7DE3#5F7DE3

#5F7DE3 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.7% C 0.158 H 269.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5F7DE3
RGBrgb(95, 125, 227)
HSLhsl(226, 70%, 63%)
HSVhsv(226, 58%, 89%)
CMYKcmyk(58.1%, 44.9%, 0%, 11%)
CIE-LABlab(54.70, 19.46, -55.25)
CIE-LCHlch(54.70, 58.57, 289.40°)
OKLaboklab(61.66% -0.0025 -0.1575)
OKLCHoklch(61.66% 0.158 269.1)
XYZxyz(25.9134, 22.6441, 75.6633)
Luminance0.2265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DE3 #E3C55F
analogous
#5FBFE3 #5F7DE3 #835FE3
triadic
#5F7DE3 #E35F7D #7DE35F
tetradic
#5F7DE3 #E35FBF #E3C55F #5FE383
square
#5F7DE3 #E35FBF #E3C55F #5FE383
split-complementary
#5F7DE3 #E3835F #BFE35F
monochromatic
#1E3EAA #2B53DA #5F7DE3 #93A7EC #C7D2F5

Accessibility & contrast

On white

3.80
#5F7DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5F7DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DE3
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DE3#FFFFFF#000000##000000
##5F7DE31.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E89E7
Deuteranopia (green-blind)
#3B7DE1
Tritanopia (blue-blind)
#0094A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7de3;
/* rgb */ color: rgb(95, 125, 227);
/* oklch */ color: oklch(61.7% 0.158 269.1);
Tailwind
colors: {
  custom: {
    50: '#96a2ec',
    500: '#5f7de3',
    950: '#000000',
  },
}
SCSS
$custom: #5f7de3;
$custom-light: #96a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7de3",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 227
  },
  "hsl": {
    "h": 226.364,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61655,
    "c": 0.15754,
    "h": 269.1
  },
  "luminance": 0.22646
}

Semantic roles & 50–950 ramp

primary
#5F7DE3
secondary
#E7DCB7
accent
#A713D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5F7DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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