#5F6CF1#5F6CF1

#5F6CF1 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.3% C 0.198 H 274.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5F6CF1
RGBrgb(95, 108, 241)
HSLhsl(235, 84%, 66%)
HSVhsv(235, 61%, 95%)
CMYKcmyk(60.6%, 55.2%, 0%, 5.5%)
CIE-LABlab(51.27, 34.40, -68.60)
CIE-LCHlch(51.27, 76.74, 296.64°)
OKLaboklab(59.35% 0.0154 -0.197)
OKLCHoklch(59.35% 0.198 274.5)
XYZxyz(25.9539, 19.5068, 85.5995)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6CF1 #F1E45F
analogous
#5FB5F1 #5F6CF1 #9B5FF1
triadic
#5F6CF1 #F15F6C #6CF15F
tetradic
#5F6CF1 #F15FB5 #F1E45F #5FF19B
square
#5F6CF1 #F15FB5 #F1E45F #5FF19B
split-complementary
#5F6CF1 #F19B5F #B5F15F
monochromatic
#1121C4 #2738EC #5F6CF1 #97A0F6 #D0D3FB

Accessibility & contrast

On white

4.28
#5F6CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5F6CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6CF1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6CF1#FFFFFF#000000##000000
##5F6CF11.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F6
Deuteranopia (green-blind)
#0074EE
Tritanopia (blue-blind)
#008CA4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f6cf1;
/* rgb */ color: rgb(95, 108, 241);
/* oklch */ color: oklch(59.3% 0.198 274.5);
Tailwind
colors: {
  custom: {
    50: '#9996f6',
    500: '#5f6cf1',
    950: '#000000',
  },
}
SCSS
$custom: #5f6cf1;
$custom-light: #9996f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6cf1",
  "rgb": {
    "r": 95,
    "g": 108,
    "b": 241
  },
  "hsl": {
    "h": 234.658,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59346,
    "c": 0.19757,
    "h": 274.5
  },
  "luminance": 0.19509
}

Semantic roles & 50–950 ramp

primary
#5F6CF1
secondary
#EEEABE
accent
#CD05E0
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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