#3131BC#3131BC

#3131BC is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.1% C 0.209 H 272.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#3131BC
RGBrgb(49, 49, 188)
HSLhsl(240, 59%, 46%)
HSVhsv(240, 74%, 74%)
CMYKcmyk(73.9%, 73.9%, 0%, 26.3%)
CIE-LABlab(30.59, 46.04, -72.11)
CIE-LCHlch(30.59, 85.56, 302.56°)
OKLaboklab(42.12% 0.0104 -0.2087)
OKLCHoklch(42.12% 0.209 272.9)
XYZxyz(11.4390, 6.4793, 48.2150)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131BC #BCBC31
analogous
#3177BC #3131BC #7731BC
triadic
#3131BC #BC3131 #31BC31
tetradic
#3131BC #BC3177 #BCBC31 #31BC77
square
#3131BC #BC3177 #BCBC31 #31BC77
split-complementary
#3131BC #BC7731 #77BC31
monochromatic
#18185B #24248B #3131BC #5757D3 #8888E0

Accessibility & contrast

On white

9.15
#3131BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3131BC
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131BC#FFFFFF#000000##FFFFFF
##3131BC1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0041BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3131bc;
/* rgb */ color: rgb(49, 49, 188);
/* oklch */ color: oklch(42.1% 0.209 272.9);
Tailwind
colors: {
  custom: {
    50: '#7f6bd1',
    500: '#3131bc',
    950: '#000000',
  },
}
SCSS
$custom: #3131bc;
$custom-light: #7f6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3131bc",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 240,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.20893,
    "h": 272.9
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3131BC

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

Preview Lab → · Contrast checker → · Palette generator →

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