#5F78EA#5F78EA

#5F78EA is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.1% C 0.173 H 271.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F78EA
RGBrgb(95, 120, 234)
HSLhsl(229, 77%, 65%)
HSVhsv(229, 59%, 92%)
CMYKcmyk(59.4%, 48.7%, 0%, 8.2%)
CIE-LABlab(53.82, 24.80, -60.58)
CIE-LCHlch(53.82, 65.46, 292.26°)
OKLaboklab(61.11% 0.0035 -0.1733)
OKLCHoklch(61.11% 0.173 271.1)
XYZxyz(26.2821, 21.8042, 80.6496)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78EA #EAD15F
analogous
#5FBDEA #5F78EA #8C5FEA
triadic
#5F78EA #EA5F78 #78EA5F
tetradic
#5F78EA #EA5FBD #EAD15F #5FEA8C
square
#5F78EA #EA5FBD #EAD15F #5FEA8C
split-complementary
#5F78EA #EA8C5F #BDEA5F
monochromatic
#1835B7 #294AE3 #5F78EA #95A6F1 #CBD3F8

Accessibility & contrast

On white

3.92
#5F78EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5F78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78EA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78EA#FFFFFF#000000##000000
##5F78EA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D87EE
Deuteranopia (green-blind)
#227BE8
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f78ea;
/* rgb */ color: rgb(95, 120, 234);
/* oklch */ color: oklch(61.1% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#989ef1',
    500: '#5f78ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f78ea;
$custom-light: #989ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78ea",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 229.209,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.17329,
    "h": 271.1
  },
  "luminance": 0.21806
}

Semantic roles & 50–950 ramp

primary
#5F78EA
secondary
#EAE2BA
accent
#B40CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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