#5F7CDB#5F7CDB

#5F7CDB is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.0% C 0.148 H 268.9°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5F7CDB
RGBrgb(95, 124, 219)
HSLhsl(226, 63%, 62%)
HSVhsv(226, 57%, 86%)
CMYKcmyk(56.6%, 43.4%, 0%, 14.1%)
CIE-LABlab(53.99, 17.45, -51.90)
CIE-LCHlch(53.99, 54.76, 288.58°)
OKLaboklab(60.96% -0.0027 -0.1477)
OKLCHoklch(60.96% 0.148 268.9)
XYZxyz(24.7089, 21.9608, 69.9409)
Luminance0.2196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CDB #DBBE5F
analogous
#5FBADB #5F7CDB #805FDB
triadic
#5F7CDB #DB5F7C #7CDB5F
tetradic
#5F7CDB #DB5FBA #DBBE5F #5FDB80
square
#5F7CDB #DB5FBA #DBBE5F #5FDB80
split-complementary
#5F7CDB #DB805F #BADB5F
monochromatic
#23409C #2E54CE #5F7CDB #91A5E6 #C3CEF1

Accessibility & contrast

On white

3.89
#5F7CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#5F7CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CDB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CDB#FFFFFF#000000##000000
##5F7CDB1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5287DF
Deuteranopia (green-blind)
#427CD9
Tritanopia (blue-blind)
#0591A1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f7cdb;
/* rgb */ color: rgb(95, 124, 219);
/* oklch */ color: oklch(61.0% 0.148 268.9);
Tailwind
colors: {
  custom: {
    50: '#95a1e7',
    500: '#5f7cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cdb;
$custom-light: #95a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cdb",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 225.968,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60958,
    "c": 0.14774,
    "h": 268.9
  },
  "luminance": 0.21963
}

Semantic roles & 50–950 ramp

primary
#5F7CDB
secondary
#E2D7B4
accent
#A21ACB
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F7CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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