#3131A4#3131A4

#3131A4 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.179 H 274.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#3131A4
RGBrgb(49, 49, 164)
HSLhsl(240, 54%, 42%)
HSVhsv(240, 70%, 64%)
CMYKcmyk(70.1%, 70.1%, 0%, 35.7%)
CIE-LABlab(28.19, 37.95, -61.72)
CIE-LCHlch(28.19, 72.46, 301.58°)
OKLaboklab(39.68% 0.0143 -0.1784)
OKLCHoklch(39.68% 0.179 274.6)
XYZxyz(9.0636, 5.5291, 35.7043)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131A4 #A4A431
analogous
#316BA4 #3131A4 #6B31A4
triadic
#3131A4 #A43131 #31A431
tetradic
#3131A4 #A4316B #A4A431 #31A46B
square
#3131A4 #A4316B #A4A431 #31A46B
split-complementary
#3131A4 #A46B31 #6BA431
monochromatic
#151546 #232375 #3131A4 #4949C9 #7979D7

Accessibility & contrast

On white

9.97
#3131A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3131A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131A4
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131A4#FFFFFF#000000##FFFFFF
##3131A41.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3131a4;
/* rgb */ color: rgb(49, 49, 164);
/* oklch */ color: oklch(39.7% 0.179 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a6ac0',
    500: '#3131a4',
    950: '#000000',
  },
}
SCSS
$custom: #3131a4;
$custom-light: #7a6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#3131a4",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 240,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39685,
    "c": 0.17894,
    "h": 274.6
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#3131A4
secondary
#BFBF72
accent
#DD4ADD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #3131A4

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

Preview Lab → · Contrast checker → · Palette generator →

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