#5F7FE1#5F7FE1

#5F7FE1 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.9% C 0.152 H 268.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5F7FE1
RGBrgb(95, 127, 225)
HSLhsl(225, 68%, 63%)
HSVhsv(225, 58%, 88%)
CMYKcmyk(57.8%, 43.6%, 0%, 11.8%)
CIE-LABlab(55.12, 17.59, -53.46)
CIE-LCHlch(55.12, 56.28, 288.21°)
OKLaboklab(61.94% -0.0049 -0.1523)
OKLCHoklch(61.94% 0.152 268.1)
XYZxyz(25.8947, 23.0458, 74.3033)
Luminance0.2305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FE1 #E1C15F
analogous
#5FC0E1 #5F7FE1 #805FE1
triadic
#5F7FE1 #E15F7F #7FE15F
tetradic
#5F7FE1 #E15FC0 #E1C15F #5FE180
square
#5F7FE1 #E15FC0 #E1C15F #5FE180
split-complementary
#5F7FE1 #E1805F #C0E15F
monochromatic
#1F40A6 #2B56D7 #5F7FE1 #93A8EB #C6D1F4

Accessibility & contrast

On white

3.74
#5F7FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5F7FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FE1
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FE1#FFFFFF#000000##000000
##5F7FE11.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE5
Deuteranopia (green-blind)
#417FDF
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7fe1;
/* rgb */ color: rgb(95, 127, 225);
/* oklch */ color: oklch(61.9% 0.152 268.1);
Tailwind
colors: {
  custom: {
    50: '#96a3eb',
    500: '#5f7fe1',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fe1;
$custom-light: #96a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fe1",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 225
  },
  "hsl": {
    "h": 225.231,
    "s": 68.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61936,
    "c": 0.15234,
    "h": 268.1
  },
  "luminance": 0.23048
}

Semantic roles & 50–950 ramp

primary
#5F7FE1
secondary
#E5DAB6
accent
#A215D0
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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