#5F74DF#5F74DF

#5F74DF is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.6% C 0.163 H 272.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5F74DF
RGBrgb(95, 116, 223)
HSLhsl(230, 67%, 62%)
HSVhsv(230, 57%, 87%)
CMYKcmyk(57.4%, 48%, 0%, 12.5%)
CIE-LABlab(52.12, 23.64, -57.14)
CIE-LCHlch(52.12, 61.84, 292.47°)
OKLaboklab(59.61% 0.0063 -0.1632)
OKLCHoklch(59.61% 0.163 272.2)
XYZxyz(24.2796, 20.2495, 72.4268)
Luminance0.2025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74DF #DFCA5F
analogous
#5FB4DF #5F74DF #8A5FDF
triadic
#5F74DF #DF5F74 #74DF5F
tetradic
#5F74DF #DF5FB4 #DFCA5F #5FDF8A
square
#5F74DF #DF5FB4 #DFCA5F #5FDF8A
split-complementary
#5F74DF #DF8A5F #B4DF5F
monochromatic
#2136A3 #2C48D5 #5F74DF #92A0E9 #C5CDF3

Accessibility & contrast

On white

4.16
#5F74DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5F74DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74DF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74DF#FFFFFF#000000##000000
##5F74DF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F82E3
Deuteranopia (green-blind)
#2B77DD
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f74df;
/* rgb */ color: rgb(95, 116, 223);
/* oklch */ color: oklch(59.6% 0.163 272.2);
Tailwind
colors: {
  custom: {
    50: '#969bea',
    500: '#5f74df',
    950: '#000000',
  },
}
SCSS
$custom: #5f74df;
$custom-light: #969bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74df",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 223
  },
  "hsl": {
    "h": 230.156,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59609,
    "c": 0.16331,
    "h": 272.2
  },
  "luminance": 0.20251
}

Semantic roles & 50–950 ramp

primary
#5F74DF
secondary
#E4DDB6
accent
#B017CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F74DF

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

Preview Lab → · Contrast checker → · Palette generator →

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