#5E5FCA#5E5FCA

#5E5FCA is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.1% C 0.162 H 279.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5E5FCA
RGBrgb(94, 95, 202)
HSLhsl(239, 50%, 58%)
HSVhsv(239, 53%, 79%)
CMYKcmyk(53.5%, 53%, 0%, 20.8%)
CIE-LABlab(45.40, 29.58, -56.00)
CIE-LCHlch(45.40, 63.33, 297.84°)
OKLaboklab(54.1% 0.0256 -0.16)
OKLCHoklch(54.1% 0.162 279.1)
XYZxyz(19.3656, 14.8272, 57.7071)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5FCA #CAC95E
analogous
#5E95CA #5E5FCA #935ECA
triadic
#5E5FCA #CA5E5F #5FCA5E
tetradic
#5E5FCA #CA5E95 #CAC95E #5ECA93
square
#5E5FCA #CA5E95 #CAC95E #5ECA93
split-complementary
#5E5FCA #CA935E #95CA5E
monochromatic
#2B2C83 #3A3BB1 #5E5FCA #8C8DD9 #BABBE8

Accessibility & contrast

On white

5.30
#5E5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5E5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5FCA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5FCA#FFFFFF#000000##FFFFFF
##5E5FCA1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2370CE
Deuteranopia (green-blind)
#0F67C8
Tritanopia (blue-blind)
#2D778B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5e5fca;
/* rgb */ color: rgb(94, 95, 202);
/* oklch */ color: oklch(54.1% 0.162 279.1);
Tailwind
colors: {
  custom: {
    50: '#948cdb',
    500: '#5e5fca',
    950: '#000000',
  },
}
SCSS
$custom: #5e5fca;
$custom-light: #948cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5fca",
  "rgb": {
    "r": 94,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 239.444,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.16209,
    "h": 279.1
  },
  "luminance": 0.14828
}

Semantic roles & 50–950 ramp

primary
#5E5FCA
secondary
#D7D7AC
accent
#D94EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5E5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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