#3131AB#3131AB

#3131AB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.188 H 274.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#3131AB
RGBrgb(49, 49, 171)
HSLhsl(240, 55%, 43%)
HSVhsv(240, 71%, 67%)
CMYKcmyk(71.3%, 71.3%, 0%, 32.9%)
CIE-LABlab(28.87, 40.34, -64.82)
CIE-LCHlch(28.87, 76.35, 301.90°)
OKLaboklab(40.38% 0.0132 -0.1874)
OKLCHoklch(40.38% 0.188 274)
XYZxyz(9.7132, 5.7889, 39.1257)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131AB #ABAB31
analogous
#316EAB #3131AB #6E31AB
triadic
#3131AB #AB3131 #31AB31
tetradic
#3131AB #AB316E #ABAB31 #31AB6E
square
#3131AB #AB316E #ABAB31 #31AB6E
split-complementary
#3131AB #AB6E31 #6EAB31
monochromatic
#16164C #23237B #3131AB #4D4DCC #7D7DDA

Accessibility & contrast

On white

9.73
#3131AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3131AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131AB
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131AB#FFFFFF#000000##FFFFFF
##3131AB1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3131ab;
/* rgb */ color: rgb(49, 49, 171);
/* oklch */ color: oklch(40.4% 0.188 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b6ac5',
    500: '#3131ab',
    950: '#000000',
  },
}
SCSS
$custom: #3131ab;
$custom-light: #7b6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ab",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40381,
    "c": 0.18788,
    "h": 274
  },
  "luminance": 0.0579
}

Semantic roles & 50–950 ramp

primary
#3131AB
secondary
#C2C275
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3131AB

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

Preview Lab → · Contrast checker → · Palette generator →

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