#5F6CF2#5F6CF2

#5F6CF2 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.4% C 0.199 H 274.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5F6CF2
RGBrgb(95, 108, 242)
HSLhsl(235, 85%, 66%)
HSVhsv(235, 61%, 95%)
CMYKcmyk(60.7%, 55.4%, 0%, 5.1%)
CIE-LABlab(51.34, 34.73, -69.04)
CIE-LCHlch(51.34, 77.29, 296.70°)
OKLaboklab(59.42% 0.0154 -0.1983)
OKLCHoklch(59.42% 0.199 274.4)
XYZxyz(26.1036, 19.5667, 86.3883)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6CF2 #F2E55F
analogous
#5FB5F2 #5F6CF2 #9B5FF2
triadic
#5F6CF2 #F25F6C #6CF25F
tetradic
#5F6CF2 #F25FB5 #F2E55F #5FF29B
square
#5F6CF2 #F25FB5 #F2E55F #5FF29B
split-complementary
#5F6CF2 #F29B5F #B5F25F
monochromatic
#1020C6 #2638ED #5F6CF2 #98A0F7 #D0D4FB

Accessibility & contrast

On white

4.27
#5F6CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5F6CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6CF2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6CF2#FFFFFF#000000##000000
##5F6CF21.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#008CA5
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f6cf2;
/* rgb */ color: rgb(95, 108, 242);
/* oklch */ color: oklch(59.4% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#9a96f7',
    500: '#5f6cf2',
    950: '#000000',
  },
}
SCSS
$custom: #5f6cf2;
$custom-light: #9a96f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6cf2",
  "rgb": {
    "r": 95,
    "g": 108,
    "b": 242
  },
  "hsl": {
    "h": 234.694,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59419,
    "c": 0.19889,
    "h": 274.4
  },
  "luminance": 0.19569
}

Semantic roles & 50–950 ramp

primary
#5F6CF2
secondary
#EFEABE
accent
#CE04E1
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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