#5F81EA#5F81EA

#5F81EA is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.9% C 0.162 H 268.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5F81EA
RGBrgb(95, 129, 234)
HSLhsl(225, 77%, 65%)
HSVhsv(225, 59%, 92%)
CMYKcmyk(59.4%, 44.9%, 0%, 8.2%)
CIE-LABlab(56.16, 19.33, -56.83)
CIE-LCHlch(56.16, 60.02, 288.79°)
OKLaboklab(62.9% -0.0056 -0.1621)
OKLCHoklch(62.9% 0.162 268)
XYZxyz(27.4158, 24.0717, 81.0275)
Luminance0.2407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81EA #EAC85F
analogous
#5FC6EA #5F81EA #835FEA
triadic
#5F81EA #EA5F81 #81EA5F
tetradic
#5F81EA #EA5FC6 #EAC85F #5FEA83
square
#5F81EA #EA5FC6 #EAC85F #5FEA83
split-complementary
#5F81EA #EA835F #C6EA5F
monochromatic
#183FB7 #2956E3 #5F81EA #95ACF1 #CBD6F8

Accessibility & contrast

On white

3.61
#5F81EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5F81EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81EA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81EA#FFFFFF#000000##000000
##5F81EA1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#3B81E8
Tritanopia (blue-blind)
#0099AA
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5f81ea;
/* rgb */ color: rgb(95, 129, 234);
/* oklch */ color: oklch(62.9% 0.162 268.0);
Tailwind
colors: {
  custom: {
    50: '#97a5f1',
    500: '#5f81ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f81ea;
$custom-light: #97a5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81ea",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 225.324,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62898,
    "c": 0.16222,
    "h": 268
  },
  "luminance": 0.24074
}

Semantic roles & 50–950 ramp

primary
#5F81EA
secondary
#EADFBA
accent
#A70CD9
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5F81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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