#3131B1#3131B1

#3131B1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.195 H 273.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#3131B1
RGBrgb(49, 49, 177)
HSLhsl(240, 57%, 44%)
HSVhsv(240, 72%, 69%)
CMYKcmyk(72.3%, 72.3%, 0%, 30.6%)
CIE-LABlab(29.47, 42.37, -67.43)
CIE-LCHlch(29.47, 79.64, 302.15°)
OKLaboklab(40.99% 0.0123 -0.195)
OKLCHoklch(40.99% 0.195 273.6)
XYZxyz(10.2981, 6.0229, 42.2063)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B1 #B1B131
analogous
#3171B1 #3131B1 #7131B1
triadic
#3131B1 #B13131 #31B131
tetradic
#3131B1 #B13171 #B1B131 #31B171
square
#3131B1 #B13171 #B1B131 #31B171
split-complementary
#3131B1 #B17131 #71B131
monochromatic
#161651 #242481 #3131B1 #5151CF #8080DC

Accessibility & contrast

On white

9.52
#3131B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3131B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B1
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B1#FFFFFF#000000##FFFFFF
##3131B11.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3131b1;
/* rgb */ color: rgb(49, 49, 177);
/* oklch */ color: oklch(41.0% 0.195 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d6aca',
    500: '#3131b1',
    950: '#000000',
  },
}
SCSS
$custom: #3131b1;
$custom-light: #7d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b1",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40987,
    "c": 0.19542,
    "h": 273.6
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#3131B1
secondary
#C5C579
accent
#E048E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3131B1

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

Preview Lab → · Contrast checker → · Palette generator →

#3131B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva