#5F81DF#5F81DF

#5F81DF is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.2% C 0.147 H 267.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5F81DF
RGBrgb(95, 129, 223)
HSLhsl(224, 67%, 62%)
HSVhsv(224, 57%, 87%)
CMYKcmyk(57.4%, 42.2%, 0%, 12.5%)
CIE-LABlab(55.54, 15.72, -51.67)
CIE-LCHlch(55.54, 54.01, 286.92°)
OKLaboklab(62.22% -0.0074 -0.147)
OKLCHoklch(62.22% 0.147 267.1)
XYZxyz(25.8844, 23.4591, 72.9618)
Luminance0.2346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81DF #DFBD5F
analogous
#5FC1DF #5F81DF #7D5FDF
triadic
#5F81DF #DF5F81 #81DF5F
tetradic
#5F81DF #DF5FC1 #DFBD5F #5FDF7D
square
#5F81DF #DF5FC1 #DFBD5F #5FDF7D
split-complementary
#5F81DF #DF7D5F #C1DF5F
monochromatic
#2143A3 #2C59D5 #5F81DF #92A9E9 #C5D1F3

Accessibility & contrast

On white

3.69
#5F81DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5F81DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81DF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81DF#FFFFFF#000000##000000
##5F81DF1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#588BE3
Deuteranopia (green-blind)
#4780DD
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f81df;
/* rgb */ color: rgb(95, 129, 223);
/* oklch */ color: oklch(62.2% 0.147 267.1);
Tailwind
colors: {
  custom: {
    50: '#96a5e9',
    500: '#5f81df',
    950: '#000000',
  },
}
SCSS
$custom: #5f81df;
$custom-light: #96a5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81df",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 223
  },
  "hsl": {
    "h": 224.063,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62225,
    "c": 0.14716,
    "h": 267.1
  },
  "luminance": 0.23461
}

Semantic roles & 50–950 ramp

primary
#5F81DF
secondary
#E4D8B6
accent
#9E17CF
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F81DF

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

Preview Lab → · Contrast checker → · Palette generator →

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