#5F629F#5F629F

#5F629F is a mid, moderate blue. Relative luminance 0.137; OKLCH L 52.1% C 0.096 H 280.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5F629F
RGBrgb(95, 98, 159)
HSLhsl(237, 25%, 50%)
HSVhsv(237, 40%, 62%)
CMYKcmyk(40.3%, 38.4%, 0%, 37.6%)
CIE-LABlab(43.76, 14.67, -33.48)
CIE-LCHlch(43.76, 36.56, 293.66°)
OKLaboklab(52.07% 0.0172 -0.094)
OKLCHoklch(52.07% 0.096 280.4)
XYZxyz(15.3432, 13.6708, 34.6245)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F629F #9F9C5F
analogous
#5F829F #5F629F #7C5F9F
triadic
#5F629F #9F5F62 #629F5F
tetradic
#5F629F #9F5F82 #9F9C5F #5F9F7C
square
#5F629F #9F5F82 #9F9C5F #5F9F7C
split-complementary
#5F629F #9F7C5F #829F5F
monochromatic
#313352 #484A79 #5F629F #8587B6 #ABADCD

Accessibility & contrast

On white

5.62
#5F629F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5F629F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F629F
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F629F#FFFFFF#000000##FFFFFF
##5F629F1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6AA1
Deuteranopia (green-blind)
#4A659E
Tritanopia (blue-blind)
#4C6E79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f629f;
/* rgb */ color: rgb(95, 98, 159);
/* oklch */ color: oklch(52.1% 0.096 280.4);
Tailwind
colors: {
  custom: {
    50: '#8f8ebb',
    500: '#5f629f',
    950: '#000000',
  },
}
SCSS
$custom: #5f629f;
$custom-light: #8f8ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f629f",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 159
  },
  "hsl": {
    "h": 237.188,
    "s": 25.197,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52072,
    "c": 0.09562,
    "h": 280.4
  },
  "luminance": 0.13671
}

Semantic roles & 50–950 ramp

primary
#5F629F
secondary
#BBBA9E
accent
#BD66C2
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0D0C12
muted
#7D7D81

Preview Lab

Preview with #5F629F

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

Preview Lab → · Contrast checker → · Palette generator →

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