#5F98FA#5F98FA

#5F98FA is a light, vivid blue. Relative luminance 0.318; OKLCH L 68.6% C 0.157 H 260.6°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5F98FA
RGBrgb(95, 152, 250)
HSLhsl(218, 94%, 68%)
HSVhsv(218, 62%, 98%)
CMYKcmyk(62%, 39.2%, 0%, 2%)
CIE-LABlab(63.17, 10.88, -54.49)
CIE-LCHlch(63.17, 55.56, 281.29°)
OKLaboklab(68.58% -0.0258 -0.155)
OKLCHoklch(68.58% 0.157 260.6)
XYZxyz(33.1968, 31.7884, 94.8103)
Luminance0.3179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98FA #FAC15F
analogous
#5FE6FA #5F98FA #735FFA
triadic
#5F98FA #FA5F98 #98FA5F
tetradic
#5F98FA #FA5FE6 #FAC15F #5FFA73
square
#5F98FA #FA5FE6 #FAC15F #5FFA73
split-complementary
#5F98FA #FA735F #E6FA5F
monochromatic
#0754D8 #2472F8 #5F98FA #9ABEFC #D6E4FE

Accessibility & contrast

On white

2.85
#5F98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#5F98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98FA
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98FA#FFFFFF#000000##000000
##5F98FA1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FE
Deuteranopia (green-blind)
#5792F8
Tritanopia (blue-blind)
#00AEBD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5f98fa;
/* rgb */ color: rgb(95, 152, 250);
/* oklch */ color: oklch(68.6% 0.157 260.6);
Tailwind
colors: {
  custom: {
    50: '#99b5fc',
    500: '#5f98fa',
    950: '#000000',
  },
}
SCSS
$custom: #5f98fa;
$custom-light: #99b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98fa",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 217.935,
    "s": 93.939,
    "l": 67.647
  },
  "oklch": {
    "l": 0.68578,
    "c": 0.15711,
    "h": 260.6
  },
  "luminance": 0.31791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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