#5F7EE3#5F7EE3

#5F7EE3 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.9% C 0.156 H 268.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5F7EE3
RGBrgb(95, 126, 227)
HSLhsl(226, 70%, 63%)
HSVhsv(226, 58%, 89%)
CMYKcmyk(58.1%, 44.5%, 0%, 11%)
CIE-LABlab(54.97, 18.85, -54.82)
CIE-LCHlch(54.97, 57.97, 288.97°)
OKLaboklab(61.86% -0.0036 -0.1563)
OKLCHoklch(61.86% 0.156 268.7)
XYZxyz(26.0406, 22.8986, 75.7058)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EE3 #E3C45F
analogous
#5FC0E3 #5F7EE3 #825FE3
triadic
#5F7EE3 #E35F7E #7EE35F
tetradic
#5F7EE3 #E35FC0 #E3C45F #5FE382
square
#5F7EE3 #E35FC0 #E3C45F #5FE382
split-complementary
#5F7EE3 #E3825F #C0E35F
monochromatic
#1E3FAA #2B54DA #5F7EE3 #93A8EC #C7D2F5

Accessibility & contrast

On white

3.76
#5F7EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5F7EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EE3
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EE3#FFFFFF#000000##000000
##5F7EE31.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#508AE7
Deuteranopia (green-blind)
#3D7EE1
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7ee3;
/* rgb */ color: rgb(95, 126, 227);
/* oklch */ color: oklch(61.9% 0.156 268.7);
Tailwind
colors: {
  custom: {
    50: '#96a3ec',
    500: '#5f7ee3',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ee3;
$custom-light: #96a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ee3",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 225.909,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61857,
    "c": 0.15631,
    "h": 268.7
  },
  "luminance": 0.22901
}

Semantic roles & 50–950 ramp

primary
#5F7EE3
secondary
#E7DBB7
accent
#A513D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5F7EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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