#3B31B8#3B31B8

#3B31B8 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.4% C 0.202 H 276.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#3B31B8
RGBrgb(59, 49, 184)
HSLhsl(244, 58%, 46%)
HSVhsv(244, 73%, 72%)
CMYKcmyk(67.9%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.85, 45.74, -69.30)
CIE-LCHlch(30.85, 83.04, 303.43°)
OKLaboklab(42.35% 0.0236 -0.2002)
OKLCHoklch(42.35% 0.202 276.7)
XYZxyz(11.5509, 6.5861, 46.0006)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31B8 #AEB831
analogous
#316BB8 #3B31B8 #7E31B8
triadic
#3B31B8 #B83B31 #31B83B
tetradic
#3B31B8 #B8316B #AEB831 #31B87E
square
#3B31B8 #B8316B #AEB831 #31B87E
split-complementary
#3B31B8 #B87E31 #6BB831
monochromatic
#1C1757 #2C2488 #3B31B8 #5E55D2 #8C85DE

Accessibility & contrast

On white

9.06
#3B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3B31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31B8
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31B8#FFFFFF#000000##FFFFFF
##3B31B81.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3b31b8;
/* rgb */ color: rgb(59, 49, 184);
/* oklch */ color: oklch(42.4% 0.202 276.7);
Tailwind
colors: {
  custom: {
    50: '#826bcf',
    500: '#3b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #3b31b8;
$custom-light: #826bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31b8",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 244.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.20162,
    "h": 276.7
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#3B31B8
secondary
#C2C87D
accent
#E147D6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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