#5F78CA#5F78CA

#5F78CA is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.1% C 0.129 H 269.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5F78CA
RGBrgb(95, 120, 202)
HSLhsl(226, 50%, 58%)
HSVhsv(226, 53%, 79%)
CMYKcmyk(53%, 40.6%, 0%, 20.8%)
CIE-LABlab(51.98, 14.40, -45.46)
CIE-LCHlch(51.98, 47.69, 287.58°)
OKLaboklab(59.12% -0.0014 -0.1289)
OKLCHoklch(59.12% 0.129 269.4)
XYZxyz(22.0930, 20.1286, 58.5867)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78CA #CAB15F
analogous
#5FAECA #5F78CA #7B5FCA
triadic
#5F78CA #CA5F78 #78CA5F
tetradic
#5F78CA #CA5FAE #CAB15F #5FCA7B
square
#5F78CA #CA5FAE #CAB15F #5FCA7B
split-complementary
#5F78CA #CA7B5F #AECA5F
monochromatic
#2B4083 #3B56B1 #5F78CA #8D9FD9 #BBC6E8

Accessibility & contrast

On white

4.18
#5F78CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5F78CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78CA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78CA#FFFFFF#000000##000000
##5F78CA1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5681CD
Deuteranopia (green-blind)
#4A78C8
Tritanopia (blue-blind)
#2B8A97
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f78ca;
/* rgb */ color: rgb(95, 120, 202);
/* oklch */ color: oklch(59.1% 0.129 269.4);
Tailwind
colors: {
  custom: {
    50: '#939eda',
    500: '#5f78ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f78ca;
$custom-light: #939eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78ca",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 225.981,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59119,
    "c": 0.12889,
    "h": 269.4
  },
  "luminance": 0.2013
}

Semantic roles & 50–950 ramp

primary
#5F78CA
secondary
#D8CEAD
accent
#B94EDA
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F78CA

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

Preview Lab → · Contrast checker → · Palette generator →

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