#5F7FDB#5F7FDB

#5F7FDB is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.6% C 0.144 H 267.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5F7FDB
RGBrgb(95, 127, 219)
HSLhsl(225, 63%, 62%)
HSVhsv(225, 57%, 86%)
CMYKcmyk(56.6%, 42%, 0%, 14.1%)
CIE-LABlab(54.79, 15.63, -50.62)
CIE-LCHlch(54.79, 52.98, 287.16°)
OKLaboklab(61.57% -0.006 -0.1439)
OKLCHoklch(61.57% 0.144 267.6)
XYZxyz(25.0906, 22.7242, 70.0681)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FDB #DBBB5F
analogous
#5FBDDB #5F7FDB #7D5FDB
triadic
#5F7FDB #DB5F7F #7FDB5F
tetradic
#5F7FDB #DB5FBD #DBBB5F #5FDB7D
square
#5F7FDB #DB5FBD #DBBB5F #5FDB7D
split-complementary
#5F7FDB #DB7D5F #BDDB5F
monochromatic
#23429C #2E58CE #5F7FDB #91A7E6 #C3CFF1

Accessibility & contrast

On white

3.79
#5F7FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#5F7FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FDB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FDB#FFFFFF#000000##000000
##5F7FDB1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5789DF
Deuteranopia (green-blind)
#477ED9
Tritanopia (blue-blind)
#0293A2
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7fdb;
/* rgb */ color: rgb(95, 127, 219);
/* oklch */ color: oklch(61.6% 0.144 267.6);
Tailwind
colors: {
  custom: {
    50: '#95a3e6',
    500: '#5f7fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fdb;
$custom-light: #95a3e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fdb",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 224.516,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.14406,
    "h": 267.6
  },
  "luminance": 0.22726
}

Semantic roles & 50–950 ramp

primary
#5F7FDB
secondary
#E2D6B4
accent
#9D1ACB
background
#F9FAFE
surface
#F2F3FC
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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