#5F74CA#5F74CA

#5F74CA is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.3% C 0.134 H 271.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5F74CA
RGBrgb(95, 116, 202)
HSLhsl(228, 50%, 58%)
HSVhsv(228, 53%, 79%)
CMYKcmyk(53%, 42.6%, 0%, 20.8%)
CIE-LABlab(50.90, 16.84, -47.17)
CIE-LCHlch(50.90, 50.09, 289.65°)
OKLaboklab(58.29% 0.0032 -0.1339)
OKLCHoklch(58.29% 0.134 271.4)
XYZxyz(21.6219, 19.1865, 58.4297)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74CA #CAB55F
analogous
#5FAACA #5F74CA #7F5FCA
triadic
#5F74CA #CA5F74 #74CA5F
tetradic
#5F74CA #CA5FAA #CAB55F #5FCA7F
square
#5F74CA #CA5FAA #CAB55F #5FCA7F
split-complementary
#5F74CA #CA7F5F #AACA5F
monochromatic
#2B3D83 #3B52B1 #5F74CA #8D9CD9 #BBC4E8

Accessibility & contrast

On white

4.34
#5F74CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5F74CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74CA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74CA#FFFFFF#000000##000000
##5F74CA1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#507ECD
Deuteranopia (green-blind)
#4475C8
Tritanopia (blue-blind)
#2C8795
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f74ca;
/* rgb */ color: rgb(95, 116, 202);
/* oklch */ color: oklch(58.3% 0.134 271.4);
Tailwind
colors: {
  custom: {
    50: '#939bda',
    500: '#5f74ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f74ca;
$custom-light: #939bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74ca",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 228.224,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58292,
    "c": 0.13396,
    "h": 271.4
  },
  "luminance": 0.19188
}

Semantic roles & 50–950 ramp

primary
#5F74CA
secondary
#D8CFAD
accent
#BE4EDA
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F74CA

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

Preview Lab → · Contrast checker → · Palette generator →

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