#3B31AF#3B31AF

#3B31AF is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.191 H 277.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#3B31AF
RGBrgb(59, 49, 175)
HSLhsl(245, 56%, 44%)
HSVhsv(245, 72%, 69%)
CMYKcmyk(66.3%, 72%, 0%, 31.4%)
CIE-LABlab(29.96, 42.84, -65.40)
CIE-LCHlch(29.96, 78.18, 303.23°)
OKLaboklab(41.46% 0.0253 -0.1888)
OKLCHoklch(41.46% 0.191 277.6)
XYZxyz(10.6373, 6.2207, 41.1893)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31AF #A5AF31
analogous
#3166AF #3B31AF #7A31AF
triadic
#3B31AF #AF3B31 #31AF3B
tetradic
#3B31AF #AF3166 #A5AF31 #31AF7A
square
#3B31AF #AF3166 #A5AF31 #31AF7A
split-complementary
#3B31AF #AF7A31 #66AF31
monochromatic
#1B164F #2B247F #3B31AF #594FCE #867FDB

Accessibility & contrast

On white

9.36
#3B31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3B31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31AF
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31AF#FFFFFF#000000##FFFFFF
##3B31AF1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3b31af;
/* rgb */ color: rgb(59, 49, 175);
/* oklch */ color: oklch(41.5% 0.191 277.6);
Tailwind
colors: {
  custom: {
    50: '#806bc8',
    500: '#3b31af',
    950: '#000000',
  },
}
SCSS
$custom: #3b31af;
$custom-light: #806bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31af",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 244.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41459,
    "c": 0.19052,
    "h": 277.6
  },
  "luminance": 0.06222
}

Semantic roles & 50–950 ramp

primary
#3B31AF
secondary
#BEC478
accent
#E048D4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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