#3B31C8#3B31C8

#3B31C8 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.221 H 275.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#3B31C8
RGBrgb(59, 49, 200)
HSLhsl(244, 61%, 49%)
HSVhsv(244, 76%, 78%)
CMYKcmyk(70.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(32.47, 50.81, -76.04)
CIE-LCHlch(32.47, 91.45, 303.75°)
OKLaboklab(43.99% 0.0203 -0.2199)
OKLCHoklch(43.99% 0.221 275.3)
XYZxyz(13.3238, 7.2953, 55.3383)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31C8 #BEC831
analogous
#3172C8 #3B31C8 #8731C8
triadic
#3B31C8 #C83B31 #31C83B
tetradic
#3B31C8 #C83172 #BEC831 #31C887
square
#3B31C8 #C83172 #BEC831 #31C887
split-complementary
#3B31C8 #C88731 #72C831
monochromatic
#1E1966 #2C2597 #3B31C8 #675FD8 #9590E4

Accessibility & contrast

On white

8.54
#3B31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3B31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31C8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31C8#FFFFFF#000000##FFFFFF
##3B31C81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#0045C5
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3b31c8;
/* rgb */ color: rgb(59, 49, 200);
/* oklch */ color: oklch(44.0% 0.221 275.3);
Tailwind
colors: {
  custom: {
    50: '#866cda',
    500: '#3b31c8',
    950: '#000000',
  },
}
SCSS
$custom: #3b31c8;
$custom-light: #866cda;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31c8",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 243.974,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43987,
    "c": 0.22079,
    "h": 275.3
  },
  "luminance": 0.07297
}

Semantic roles & 50–950 ramp

primary
#3B31C8
secondary
#CACE86
accent
#E444D9
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3B31C8

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

Preview Lab → · Contrast checker → · Palette generator →

#3B31C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva