#5F6FEB#5F6FEB

#5F6FEB is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.5% C 0.186 H 273.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F6FEB
RGBrgb(95, 111, 235)
HSLhsl(233, 78%, 65%)
HSVhsv(233, 60%, 92%)
CMYKcmyk(59.6%, 52.8%, 0%, 7.8%)
CIE-LABlab(51.61, 30.62, -64.70)
CIE-LCHlch(51.61, 71.58, 295.33°)
OKLaboklab(59.47% 0.0123 -0.1855)
OKLCHoklch(59.47% 0.186 273.8)
XYZxyz(25.3942, 19.7979, 81.0643)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6FEB #EBDB5F
analogous
#5FB5EB #5F6FEB #955FEB
triadic
#5F6FEB #EB5F6F #6FEB5F
tetradic
#5F6FEB #EB5FB5 #EBDB5F #5FEB95
square
#5F6FEB #EB5FB5 #EBDB5F #5FEB95
split-complementary
#5F6FEB #EB955F #B5EB5F
monochromatic
#172AB9 #293EE4 #5F6FEB #95A0F2 #CCD1F9

Accessibility & contrast

On white

4.23
#5F6FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5F6FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6FEB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6FEB#FFFFFF#000000##000000
##5F6FEB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EF
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008CA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f6feb;
/* rgb */ color: rgb(95, 111, 235);
/* oklch */ color: oklch(59.5% 0.186 273.8);
Tailwind
colors: {
  custom: {
    50: '#9898f2',
    500: '#5f6feb',
    950: '#000000',
  },
}
SCSS
$custom: #5f6feb;
$custom-light: #9898f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6feb",
  "rgb": {
    "r": 95,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 233.143,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59467,
    "c": 0.1859,
    "h": 273.8
  },
  "luminance": 0.198
}

Semantic roles & 50–950 ramp

primary
#5F6FEB
secondary
#EBE5BB
accent
#C20BDA
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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