#5F78CD#5F78CD

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

Color values

HEX#5F78CD
RGBrgb(95, 120, 205)
HSLhsl(226, 52%, 59%)
HSVhsv(226, 54%, 80%)
CMYKcmyk(53.7%, 41.5%, 0%, 19.6%)
CIE-LABlab(52.14, 15.36, -46.91)
CIE-LCHlch(52.14, 49.36, 288.13°)
OKLaboklab(59.29% -0.0008 -0.1331)
OKLCHoklch(59.29% 0.133 269.7)
XYZxyz(22.4516, 20.2720, 60.4756)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78CD #CDB45F
analogous
#5FAFCD #5F78CD #7D5FCD
triadic
#5F78CD #CD5F78 #78CD5F
tetradic
#5F78CD #CD5FAF #CDB45F #5FCD7D
square
#5F78CD #CD5FAF #CDB45F #5FCD7D
split-complementary
#5F78CD #CD7D5F #AFCD5F
monochromatic
#2A3F87 #3955B6 #5F78CD #8E9FDC #BCC7EA

Accessibility & contrast

On white

4.15
#5F78CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F78CD#FFFFFF#000000##000000
##5F78CD1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5581D0
Deuteranopia (green-blind)
#4878CB
Tritanopia (blue-blind)
#278A98
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f78cd;
/* rgb */ color: rgb(95, 120, 205);
/* oklch */ color: oklch(59.3% 0.133 269.7);
Tailwind
colors: {
  custom: {
    50: '#949edd',
    500: '#5f78cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f78cd;
$custom-light: #949edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78cd",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 226.364,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59295,
    "c": 0.13313,
    "h": 269.7
  },
  "luminance": 0.20274
}

Semantic roles & 50–950 ramp

primary
#5F78CD
secondary
#DAD0AE
accent
#BB4CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F78CD

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

Preview Lab → · Contrast checker → · Palette generator →

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