#3131C4#3131C4

#3131C4 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.219 H 272.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3131C4
RGBrgb(49, 49, 196)
HSLhsl(240, 60%, 48%)
HSVhsv(240, 75%, 77%)
CMYKcmyk(75%, 75%, 0%, 23.1%)
CIE-LABlab(31.43, 48.66, -75.44)
CIE-LCHlch(31.43, 89.77, 302.82°)
OKLaboklab(42.96% 0.009 -0.2184)
OKLCHoklch(42.96% 0.219 272.4)
XYZxyz(12.3254, 6.8338, 52.8833)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131C4 #C4C431
analogous
#317AC4 #3131C4 #7A31C4
triadic
#3131C4 #C43131 #31C431
tetradic
#3131C4 #C4317A #C4C431 #31C47A
square
#3131C4 #C4317A #C4C431 #31C47A
split-complementary
#3131C4 #C47A31 #7AC431
monochromatic
#191962 #252593 #3131C4 #5C5CD6 #8D8DE2

Accessibility & contrast

On white

8.87
#3131C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3131C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131C4
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131C4#FFFFFF#000000##FFFFFF
##3131C41.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0043C1
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3131c4;
/* rgb */ color: rgb(49, 49, 196);
/* oklch */ color: oklch(43.0% 0.219 272.4);
Tailwind
colors: {
  custom: {
    50: '#816bd7',
    500: '#3131c4',
    950: '#000000',
  },
}
SCSS
$custom: #3131c4;
$custom-light: #816bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3131c4",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 240,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4296,
    "c": 0.21855,
    "h": 272.4
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#3131C4
secondary
#CDCD84
accent
#E345E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3131C4

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

Preview Lab → · Contrast checker → · Palette generator →

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