#3131C1#3131C1

#3131C1 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.215 H 272.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3131C1
RGBrgb(49, 49, 193)
HSLhsl(240, 60%, 47%)
HSVhsv(240, 75%, 76%)
CMYKcmyk(74.6%, 74.6%, 0%, 24.3%)
CIE-LABlab(31.11, 47.68, -74.20)
CIE-LCHlch(31.11, 88.20, 302.72°)
OKLaboklab(42.64% 0.0095 -0.2147)
OKLCHoklch(42.64% 0.215 272.5)
XYZxyz(11.9873, 6.6986, 51.1029)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131C1 #C1C131
analogous
#3179C1 #3131C1 #7931C1
triadic
#3131C1 #C13131 #31C131
tetradic
#3131C1 #C13179 #C1C131 #31C179
square
#3131C1 #C13179 #C1C131 #31C179
split-complementary
#3131C1 #C17931 #79C131
monochromatic
#18185F #252590 #3131C1 #5A5AD5 #8B8BE2

Accessibility & contrast

On white

8.97
#3131C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3131C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131C1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131C1#FFFFFF#000000##FFFFFF
##3131C11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0042BE
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3131c1;
/* rgb */ color: rgb(49, 49, 193);
/* oklch */ color: oklch(42.6% 0.215 272.5);
Tailwind
colors: {
  custom: {
    50: '#806bd5',
    500: '#3131c1',
    950: '#000000',
  },
}
SCSS
$custom: #3131c1;
$custom-light: #806bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3131c1",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 240,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.21496,
    "h": 272.5
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#3131C1
secondary
#CCCC82
accent
#E345E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3131C1

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

Preview Lab → · Contrast checker → · Palette generator →

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