#3B31B7#3B31B7

#3B31B7 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.200 H 276.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#3B31B7
RGBrgb(59, 49, 183)
HSLhsl(244, 58%, 45%)
HSVhsv(244, 73%, 72%)
CMYKcmyk(67.8%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.75, 45.42, -68.87)
CIE-LCHlch(30.75, 82.50, 303.40°)
OKLaboklab(42.25% 0.0237 -0.199)
OKLCHoklch(42.25% 0.2 276.8)
XYZxyz(11.4464, 6.5443, 45.4505)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31B7 #ADB731
analogous
#316AB7 #3B31B7 #7E31B7
triadic
#3B31B7 #B73B31 #31B73B
tetradic
#3B31B7 #B7316A #ADB731 #31B77E
square
#3B31B7 #B7316A #ADB731 #31B77E
split-complementary
#3B31B7 #B77E31 #6AB731
monochromatic
#1C1756 #2B2487 #3B31B7 #5D54D1 #8B84DE

Accessibility & contrast

On white

9.09
#3B31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3B31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31B7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31B7#FFFFFF#000000##FFFFFF
##3B31B71.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3b31b7;
/* rgb */ color: rgb(59, 49, 183);
/* oklch */ color: oklch(42.3% 0.200 276.8);
Tailwind
colors: {
  custom: {
    50: '#826bce',
    500: '#3b31b7',
    950: '#000000',
  },
}
SCSS
$custom: #3b31b7;
$custom-light: #826bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31b7",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 244.478,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42253,
    "c": 0.2004,
    "h": 276.8
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#3B31B7
secondary
#C2C87C
accent
#E147D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3B31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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