#5F7BD2#5F7BD2

#5F7BD2 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.2% C 0.136 H 268.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F7BD2
RGBrgb(95, 123, 210)
HSLhsl(225, 56%, 60%)
HSVhsv(225, 55%, 82%)
CMYKcmyk(54.8%, 41.4%, 0%, 17.6%)
CIE-LABlab(53.22, 15.14, -48.03)
CIE-LCHlch(53.22, 50.36, 287.50°)
OKLaboklab(60.21% -0.0032 -0.1364)
OKLCHoklch(60.21% 0.136 268.6)
XYZxyz(23.4313, 21.2502, 63.8272)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BD2 #D2B65F
analogous
#5FB5D2 #5F7BD2 #7C5FD2
triadic
#5F7BD2 #D25F7B #7BD25F
tetradic
#5F7BD2 #D25FB5 #D2B65F #5FD27C
square
#5F7BD2 #D25FB5 #D2B65F #5FD27C
split-complementary
#5F7BD2 #D27C5F #B5D25F
monochromatic
#28418F #3657BE #5F7BD2 #8FA2DF #BFCAED

Accessibility & contrast

On white

4.00
#5F7BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#5F7BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BD2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BD2#FFFFFF#000000##000000
##5F7BD21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5685D5
Deuteranopia (green-blind)
#487AD0
Tritanopia (blue-blind)
#1E8E9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f7bd2;
/* rgb */ color: rgb(95, 123, 210);
/* oklch */ color: oklch(60.2% 0.136 268.6);
Tailwind
colors: {
  custom: {
    50: '#94a0e0',
    500: '#5f7bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bd2;
$custom-light: #94a0e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bd2",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 225.391,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60212,
    "c": 0.13643,
    "h": 268.6
  },
  "luminance": 0.21252
}

Semantic roles & 50–950 ramp

primary
#5F7BD2
secondary
#DDD2B0
accent
#BB48DF
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F7BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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