#3131BD#3131BD

#3131BD is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.2% C 0.210 H 272.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#3131BD
RGBrgb(49, 49, 189)
HSLhsl(240, 59%, 47%)
HSVhsv(240, 74%, 74%)
CMYKcmyk(74.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(30.69, 46.37, -72.53)
CIE-LCHlch(30.69, 86.09, 302.59°)
OKLaboklab(42.23% 0.0103 -0.2099)
OKLCHoklch(42.23% 0.21 272.8)
XYZxyz(11.5472, 6.5225, 48.7847)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131BD #BDBD31
analogous
#3177BD #3131BD #7731BD
triadic
#3131BD #BD3131 #31BD31
tetradic
#3131BD #BD3177 #BDBD31 #31BD77
square
#3131BD #BD3177 #BDBD31 #31BD77
split-complementary
#3131BD #BD7731 #77BD31
monochromatic
#18185C #24248C #3131BD #5858D4 #8888E0

Accessibility & contrast

On white

9.11
#3131BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3131BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131BD
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131BD#FFFFFF#000000##FFFFFF
##3131BD1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3131bd;
/* rgb */ color: rgb(49, 49, 189);
/* oklch */ color: oklch(42.2% 0.210 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f6bd2',
    500: '#3131bd',
    950: '#000000',
  },
}
SCSS
$custom: #3131bd;
$custom-light: #7f6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#3131bd",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.21014,
    "h": 272.8
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#3131BD
secondary
#CACA80
accent
#E246E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3131BD

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

Preview Lab → · Contrast checker → · Palette generator →

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