#5F97FA#5F97FA

#5F97FA is a light, vivid blue. Relative luminance 0.315; OKLCH L 68.4% C 0.158 H 261.0°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5F97FA
RGBrgb(95, 151, 250)
HSLhsl(218, 94%, 68%)
HSVhsv(218, 62%, 98%)
CMYKcmyk(62%, 39.6%, 0%, 2%)
CIE-LABlab(62.90, 11.47, -54.92)
CIE-LCHlch(62.90, 56.10, 281.79°)
OKLaboklab(68.37% -0.0248 -0.1562)
OKLCHoklch(68.37% 0.158 261)
XYZxyz(33.0352, 31.4652, 94.7564)
Luminance0.3147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97FA #FAC25F
analogous
#5FE4FA #5F97FA #755FFA
triadic
#5F97FA #FA5F97 #97FA5F
tetradic
#5F97FA #FA5FE4 #FAC25F #5FFA75
square
#5F97FA #FA5FE4 #FAC25F #5FFA75
split-complementary
#5F97FA #FA755F #E4FA5F
monochromatic
#0752D8 #2470F8 #5F97FA #9ABEFC #D6E4FE

Accessibility & contrast

On white

2.88
#5F97FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#5F97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97FA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97FA#FFFFFF#000000##000000
##5F97FA1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FE
Deuteranopia (green-blind)
#5592F8
Tritanopia (blue-blind)
#00ADBC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #5f97fa;
/* rgb */ color: rgb(95, 151, 250);
/* oklch */ color: oklch(68.4% 0.158 261.0);
Tailwind
colors: {
  custom: {
    50: '#99b5fc',
    500: '#5f97fa',
    950: '#000000',
  },
}
SCSS
$custom: #5f97fa;
$custom-light: #99b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97fa",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 218.323,
    "s": 93.939,
    "l": 67.647
  },
  "oklch": {
    "l": 0.6837,
    "c": 0.1582,
    "h": 261
  },
  "luminance": 0.31468
}

Semantic roles & 50–950 ramp

primary
#5F97FA
secondary
#F2E1C2
accent
#9300E6
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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