#3B31B4#3B31B4

#3B31B4 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 42.0% C 0.197 H 277.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#3B31B4
RGBrgb(59, 49, 180)
HSLhsl(245, 57%, 45%)
HSVhsv(245, 73%, 71%)
CMYKcmyk(67.2%, 72.8%, 0%, 29.4%)
CIE-LABlab(30.45, 44.46, -67.58)
CIE-LCHlch(30.45, 80.89, 303.34°)
OKLaboklab(41.95% 0.0243 -0.1952)
OKLCHoklch(41.95% 0.197 277.1)
XYZxyz(11.1375, 6.4208, 43.8236)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31B4 #AAB431
analogous
#3169B4 #3B31B4 #7C31B4
triadic
#3B31B4 #B43B31 #31B43B
tetradic
#3B31B4 #B43169 #AAB431 #31B47C
square
#3B31B4 #B43169 #AAB431 #31B47C
split-complementary
#3B31B4 #B47C31 #69B431
monochromatic
#1B1754 #2B2484 #3B31B4 #5C52D0 #8982DD

Accessibility & contrast

On white

9.19
#3B31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3B31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31B4
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31B4#FFFFFF#000000##FFFFFF
##3B31B41.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0042B2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3b31b4;
/* rgb */ color: rgb(59, 49, 180);
/* oklch */ color: oklch(42.0% 0.197 277.1);
Tailwind
colors: {
  custom: {
    50: '#816bcc',
    500: '#3b31b4',
    950: '#000000',
  },
}
SCSS
$custom: #3b31b4;
$custom-light: #816bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31b4",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 244.58,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41953,
    "c": 0.19672,
    "h": 277.1
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#3B31B4
secondary
#C0C67B
accent
#E047D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3B31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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