#5F7BDA#5F7BDA

#5F7BDA is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.7% C 0.148 H 269.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F7BDA
RGBrgb(95, 123, 218)
HSLhsl(226, 62%, 61%)
HSVhsv(226, 56%, 85%)
CMYKcmyk(56.4%, 43.6%, 0%, 14.5%)
CIE-LABlab(53.66, 17.73, -51.85)
CIE-LCHlch(53.66, 54.80, 288.88°)
OKLaboklab(60.69% -0.0018 -0.1476)
OKLCHoklch(60.69% 0.148 269.3)
XYZxyz(24.4530, 21.6589, 69.2081)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BDA #DABE5F
analogous
#5FB9DA #5F7BDA #815FDA
triadic
#5F7BDA #DA5F7B #7BDA5F
tetradic
#5F7BDA #DA5FB9 #DABE5F #5FDA81
square
#5F7BDA #DA5FB9 #DABE5F #5FDA81
split-complementary
#5F7BDA #DA815F #B9DA5F
monochromatic
#243F9B #2F53CD #5F7BDA #91A4E5 #C2CDF1

Accessibility & contrast

On white

3.94
#5F7BDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5F7BDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BDA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BDA#FFFFFF#000000##000000
##5F7BDA1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5186DE
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#0A90A0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f7bda;
/* rgb */ color: rgb(95, 123, 218);
/* oklch */ color: oklch(60.7% 0.148 269.3);
Tailwind
colors: {
  custom: {
    50: '#95a0e6',
    500: '#5f7bda',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bda;
$custom-light: #95a0e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bda",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 218
  },
  "hsl": {
    "h": 226.341,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.14759,
    "h": 269.3
  },
  "luminance": 0.21661
}

Semantic roles & 50–950 ramp

primary
#5F7BDA
secondary
#E1D7B3
accent
#A21BCA
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F7BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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