#3B31B2#3B31B2

#3B31B2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.8% C 0.194 H 277.3°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#3B31B2
RGBrgb(59, 49, 178)
HSLhsl(245, 57%, 45%)
HSVhsv(245, 72%, 70%)
CMYKcmyk(66.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(30.25, 43.81, -66.71)
CIE-LCHlch(30.25, 79.81, 303.29°)
OKLaboklab(41.76% 0.0247 -0.1927)
OKLCHoklch(41.76% 0.194 277.3)
XYZxyz(10.9352, 6.3398, 42.7583)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31B2 #A8B231
analogous
#3168B2 #3B31B2 #7C31B2
triadic
#3B31B2 #B23B31 #31B23B
tetradic
#3B31B2 #B23168 #A8B231 #31B27C
square
#3B31B2 #B23168 #A8B231 #31B27C
split-complementary
#3B31B2 #B27C31 #68B231
monochromatic
#1B1752 #2B2482 #3B31B2 #5B51CF #8881DC

Accessibility & contrast

On white

9.26
#3B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3B31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31B2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31B2#FFFFFF#000000##FFFFFF
##3B31B21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3b31b2;
/* rgb */ color: rgb(59, 49, 178);
/* oklch */ color: oklch(41.8% 0.194 277.3);
Tailwind
colors: {
  custom: {
    50: '#816bca',
    500: '#3b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #3b31b2;
$custom-light: #816bca;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31b2",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 244.651,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.19425,
    "h": 277.3
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#3B31B2
secondary
#C0C579
accent
#E048D4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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