#3B31BB#3B31BB

#3B31BB is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.205 H 276.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#3B31BB
RGBrgb(59, 49, 187)
HSLhsl(244, 58%, 46%)
HSVhsv(244, 74%, 73%)
CMYKcmyk(68.4%, 73.8%, 0%, 26.7%)
CIE-LABlab(31.14, 46.70, -70.59)
CIE-LCHlch(31.14, 84.64, 303.49°)
OKLaboklab(42.66% 0.023 -0.204)
OKLCHoklch(42.66% 0.205 276.4)
XYZxyz(11.8687, 6.7132, 47.6744)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31BB #B1BB31
analogous
#316CBB #3B31BB #8031BB
triadic
#3B31BB #BB3B31 #31BB3B
tetradic
#3B31BB #BB316C #B1BB31 #31BB80
square
#3B31BB #BB316C #B1BB31 #31BB80
split-complementary
#3B31BB #BB8031 #6CBB31
monochromatic
#1C185A #2C248B #3B31BB #5F56D3 #8D87E0

Accessibility & contrast

On white

8.96
#3B31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3B31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31BB
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31BB#FFFFFF#000000##FFFFFF
##3B31BB1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3b31bb;
/* rgb */ color: rgb(59, 49, 187);
/* oklch */ color: oklch(42.7% 0.205 276.4);
Tailwind
colors: {
  custom: {
    50: '#836bd1',
    500: '#3b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #3b31bb;
$custom-light: #836bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31bb",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 244.348,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.20527,
    "h": 276.4
  },
  "luminance": 0.06714
}

Semantic roles & 50–950 ramp

primary
#3B31BB
secondary
#C4C97F
accent
#E246D6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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