#5F74ED#5F74ED

#5F74ED is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.5% C 0.182 H 272.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5F74ED
RGBrgb(95, 116, 237)
HSLhsl(231, 80%, 65%)
HSVhsv(231, 60%, 93%)
CMYKcmyk(59.9%, 51.1%, 0%, 7.1%)
CIE-LABlab(52.99, 28.23, -63.59)
CIE-LCHlch(52.99, 69.58, 293.94°)
OKLaboklab(60.55% 0.0077 -0.1822)
OKLCHoklch(60.55% 0.182 272.4)
XYZxyz(26.2457, 21.0360, 82.7816)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74ED #EDD85F
analogous
#5FBBED #5F74ED #915FED
triadic
#5F74ED #ED5F74 #74ED5F
tetradic
#5F74ED #ED5FBB #EDD85F #5FED91
square
#5F74ED #ED5FBB #EDD85F #5FED91
split-complementary
#5F74ED #ED915F #BBED5F
monochromatic
#152EBC #2844E7 #5F74ED #96A4F3 #CDD4F9

Accessibility & contrast

On white

4.03
#5F74ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5F74ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74ED
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74ED#FFFFFF#000000##000000
##5F74ED1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E85F1
Deuteranopia (green-blind)
#0079EA
Tritanopia (blue-blind)
#0090A5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f74ed;
/* rgb */ color: rgb(95, 116, 237);
/* oklch */ color: oklch(60.5% 0.182 272.4);
Tailwind
colors: {
  custom: {
    50: '#989bf4',
    500: '#5f74ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f74ed;
$custom-light: #989bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74ed",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 237
  },
  "hsl": {
    "h": 231.127,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60547,
    "c": 0.18233,
    "h": 272.4
  },
  "luminance": 0.21038
}

Semantic roles & 50–950 ramp

primary
#5F74ED
secondary
#ECE5BC
accent
#BD09DC
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F74ED

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

Preview Lab → · Contrast checker → · Palette generator →

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