#3131A6#3131A6

#3131A6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.182 H 274.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#3131A6
RGBrgb(49, 49, 166)
HSLhsl(240, 54%, 42%)
HSVhsv(240, 70%, 65%)
CMYKcmyk(70.5%, 70.5%, 0%, 34.9%)
CIE-LABlab(28.39, 38.64, -62.61)
CIE-LCHlch(28.39, 73.58, 301.68°)
OKLaboklab(39.88% 0.014 -0.181)
OKLCHoklch(39.88% 0.182 274.4)
XYZxyz(9.2456, 5.6019, 36.6630)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131A6 #A6A631
analogous
#316CA6 #3131A6 #6C31A6
triadic
#3131A6 #A63131 #31A631
tetradic
#3131A6 #A6316C #A6A631 #31A66C
square
#3131A6 #A6316C #A6A631 #31A66C
split-complementary
#3131A6 #A66C31 #6CA631
monochromatic
#151547 #232377 #3131A6 #4A4ACA #7A7AD8

Accessibility & contrast

On white

9.90
#3131A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3131A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131A6
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131A6#FFFFFF#000000##FFFFFF
##3131A61.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3131a6;
/* rgb */ color: rgb(49, 49, 166);
/* oklch */ color: oklch(39.9% 0.182 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a6ac2',
    500: '#3131a6',
    950: '#000000',
  },
}
SCSS
$custom: #3131a6;
$custom-light: #7a6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#3131a6",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.18151,
    "h": 274.4
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3131A6

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

Preview Lab → · Contrast checker → · Palette generator →

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