#3131AE#3131AE

#3131AE is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.192 H 273.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#3131AE
RGBrgb(49, 49, 174)
HSLhsl(240, 56%, 44%)
HSVhsv(240, 72%, 68%)
CMYKcmyk(71.8%, 71.8%, 0%, 31.8%)
CIE-LABlab(29.17, 41.36, -66.13)
CIE-LCHlch(29.17, 78.00, 302.02°)
OKLaboklab(40.68% 0.0128 -0.1912)
OKLCHoklch(40.68% 0.192 273.8)
XYZxyz(10.0024, 5.9046, 40.6488)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131AE #AEAE31
analogous
#316FAE #3131AE #6F31AE
triadic
#3131AE #AE3131 #31AE31
tetradic
#3131AE #AE316F #AEAE31 #31AE6F
square
#3131AE #AE316F #AEAE31 #31AE6F
split-complementary
#3131AE #AE6F31 #6FAE31
monochromatic
#16164E #24247E #3131AE #4F4FCD #7F7FDB

Accessibility & contrast

On white

9.63
#3131AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3131AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131AE
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131AE#FFFFFF#000000##FFFFFF
##3131AE1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3131ae;
/* rgb */ color: rgb(49, 49, 174);
/* oklch */ color: oklch(40.7% 0.192 273.8);
Tailwind
colors: {
  custom: {
    50: '#7c6ac7',
    500: '#3131ae',
    950: '#000000',
  },
}
SCSS
$custom: #3131ae;
$custom-light: #7c6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ae",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 240,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.19167,
    "h": 273.8
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#3131AE
secondary
#C4C477
accent
#DF48DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3131AE

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

Preview Lab → · Contrast checker → · Palette generator →

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