#5F55BE#5F55BE

#5F55BE is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.5% C 0.159 H 283.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5F55BE
RGBrgb(95, 85, 190)
HSLhsl(246, 45%, 54%)
HSVhsv(246, 55%, 75%)
CMYKcmyk(50%, 55.3%, 0%, 25.5%)
CIE-LABlab(42.23, 32.16, -54.15)
CIE-LCHlch(42.23, 62.99, 300.71°)
OKLaboklab(51.5% 0.0374 -0.1547)
OKLCHoklch(51.5% 0.159 283.6)
XYZxyz(17.2593, 12.6467, 50.2368)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F55BE #B4BE55
analogous
#5580BE #5F55BE #9455BE
triadic
#5F55BE #BE5F55 #55BE5F
tetradic
#5F55BE #BE5580 #B4BE55 #55BE94
square
#5F55BE #BE5580 #B4BE55 #55BE94
split-complementary
#5F55BE #BE9455 #80BE55
monochromatic
#312A6E #443B9B #5F55BE #8981CF #B2AEE0

Accessibility & contrast

On white

5.95
#5F55BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F55BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F55BE
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F55BE#FFFFFF#000000##FFFFFF
##5F55BE1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1567C2
Deuteranopia (green-blind)
#0960BC
Tritanopia (blue-blind)
#3C6D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f55be;
/* rgb */ color: rgb(95, 85, 190);
/* oklch */ color: oklch(51.5% 0.159 283.6);
Tailwind
colors: {
  custom: {
    50: '#9385d2',
    500: '#5f55be',
    950: '#000000',
  },
}
SCSS
$custom: #5f55be;
$custom-light: #9385d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f55be",
  "rgb": {
    "r": 95,
    "g": 85,
    "b": 190
  },
  "hsl": {
    "h": 245.714,
    "s": 44.681,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51503,
    "c": 0.15913,
    "h": 283.6
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#5F55BE
secondary
#CACEA1
accent
#D453C8
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F55BE

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

Preview Lab → · Contrast checker → · Palette generator →

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