#3131A5#3131A5

#3131A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.180 H 274.5°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#3131A5
RGBrgb(49, 49, 165)
HSLhsl(240, 54%, 42%)
HSVhsv(240, 70%, 65%)
CMYKcmyk(70.3%, 70.3%, 0%, 35.3%)
CIE-LABlab(28.29, 38.29, -62.17)
CIE-LCHlch(28.29, 73.02, 301.63°)
OKLaboklab(39.78% 0.0141 -0.1797)
OKLCHoklch(39.78% 0.18 274.5)
XYZxyz(9.1542, 5.5653, 36.1818)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131A5 #A5A531
analogous
#316BA5 #3131A5 #6B31A5
triadic
#3131A5 #A53131 #31A531
tetradic
#3131A5 #A5316B #A5A531 #31A56B
square
#3131A5 #A5316B #A5A531 #31A56B
split-complementary
#3131A5 #A56B31 #6BA531
monochromatic
#151547 #232376 #3131A5 #4A4AC9 #7979D7

Accessibility & contrast

On white

9.94
#3131A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3131A5
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131A5#FFFFFF#000000##FFFFFF
##3131A51.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3131a5;
/* rgb */ color: rgb(49, 49, 165);
/* oklch */ color: oklch(39.8% 0.180 274.5);
Tailwind
colors: {
  custom: {
    50: '#7a6ac1',
    500: '#3131a5',
    950: '#000000',
  },
}
SCSS
$custom: #3131a5;
$custom-light: #7a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#3131a5",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39783,
    "c": 0.18022,
    "h": 274.5
  },
  "luminance": 0.05566
}

Semantic roles & 50–950 ramp

primary
#3131A5
secondary
#C0C072
accent
#DE4ADE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3131A5

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

Preview Lab → · Contrast checker → · Palette generator →

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