#5F97F2#5F97F2

#5F97F2 is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.9% C 0.148 H 259.7°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F97F2
RGBrgb(95, 151, 242)
HSLhsl(217, 85%, 66%)
HSVhsv(217, 61%, 95%)
CMYKcmyk(60.7%, 37.6%, 0%, 5.1%)
CIE-LABlab(62.49, 8.84, -51.18)
CIE-LCHlch(62.49, 51.94, 279.79°)
OKLaboklab(67.92% -0.0265 -0.1453)
OKLCHoklch(67.92% 0.148 259.7)
XYZxyz(31.8073, 30.9741, 88.2896)
Luminance0.3098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97F2 #F2BA5F
analogous
#5FE0F2 #5F97F2 #705FF2
triadic
#5F97F2 #F25F97 #97F25F
tetradic
#5F97F2 #F25FE0 #F2BA5F #5FF270
square
#5F97F2 #F25FE0 #F2BA5F #5FF270
split-complementary
#5F97F2 #F2705F #E0F25F
monochromatic
#1056C6 #2672ED #5F97F2 #98BCF7 #D0E1FB

Accessibility & contrast

On white

2.92
#5F97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#5F97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97F2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97F2#FFFFFF#000000##000000
##5F97F21.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF6
Deuteranopia (green-blind)
#5C91F0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5f97f2;
/* rgb */ color: rgb(95, 151, 242);
/* oklch */ color: oklch(67.9% 0.148 259.7);
Tailwind
colors: {
  custom: {
    50: '#98b5f7',
    500: '#5f97f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f97f2;
$custom-light: #98b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97f2",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 217.143,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67915,
    "c": 0.1477,
    "h": 259.7
  },
  "luminance": 0.30977
}

Semantic roles & 50–950 ramp

primary
#5F97F2
secondary
#EFDCBE
accent
#8D04E1
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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