#5F7FE0#5F7FE0

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

Color values

HEX#5F7FE0
RGBrgb(95, 127, 224)
HSLhsl(225, 68%, 63%)
HSVhsv(225, 58%, 88%)
CMYKcmyk(57.6%, 43.3%, 0%, 12.2%)
CIE-LABlab(55.06, 17.26, -52.99)
CIE-LCHlch(55.06, 55.73, 288.04°)
OKLaboklab(61.88% -0.0051 -0.1509)
OKLCHoklch(61.88% 0.151 268.1)
XYZxyz(25.7587, 22.9914, 73.5869)
Luminance0.2299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FE0 #E0C05F
analogous
#5FC0E0 #5F7FE0 #7F5FE0
triadic
#5F7FE0 #E05F7F #7FE05F
tetradic
#5F7FE0 #E05FC0 #E0C05F #5FE07F
square
#5F7FE0 #E05FC0 #E0C05F #5FE07F
split-complementary
#5F7FE0 #E07F5F #C0E05F
monochromatic
#2041A5 #2C56D6 #5F7FE0 #92A8EA #C6D1F4

Accessibility & contrast

On white

3.75
#5F7FE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5F7FE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FE0
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FE0#FFFFFF#000000##000000
##5F7FE01.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#548AE4
Deuteranopia (green-blind)
#427EDE
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7fe0;
/* rgb */ color: rgb(95, 127, 224);
/* oklch */ color: oklch(61.9% 0.151 268.1);
Tailwind
colors: {
  custom: {
    50: '#96a3ea',
    500: '#5f7fe0',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fe0;
$custom-light: #96a3ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fe0",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 224
  },
  "hsl": {
    "h": 225.116,
    "s": 67.539,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61875,
    "c": 0.15097,
    "h": 268.1
  },
  "luminance": 0.22993
}

Semantic roles & 50–950 ramp

primary
#5F7FE0
secondary
#E5D9B6
accent
#A116CF
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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