#3131BA#3131BA

#3131BA is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.9% C 0.206 H 273.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#3131BA
RGBrgb(49, 49, 186)
HSLhsl(240, 58%, 46%)
HSVhsv(240, 74%, 73%)
CMYKcmyk(73.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(30.38, 45.38, -71.27)
CIE-LCHlch(30.38, 84.49, 302.49°)
OKLaboklab(41.91% 0.0108 -0.2062)
OKLCHoklch(41.91% 0.207 273)
XYZxyz(11.2249, 6.3936, 47.0874)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131BA #BABA31
analogous
#3175BA #3131BA #7531BA
triadic
#3131BA #BA3131 #31BA31
tetradic
#3131BA #BA3175 #BABA31 #31BA75
square
#3131BA #BA3175 #BABA31 #31BA75
split-complementary
#3131BA #BA7531 #75BA31
monochromatic
#171759 #24248A #3131BA #5656D2 #8686DF

Accessibility & contrast

On white

9.21
#3131BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3131BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131BA
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131BA#FFFFFF#000000##FFFFFF
##3131BA1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0041B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3131ba;
/* rgb */ color: rgb(49, 49, 186);
/* oklch */ color: oklch(41.9% 0.206 273.0);
Tailwind
colors: {
  custom: {
    50: '#7f6bd0',
    500: '#3131ba',
    950: '#000000',
  },
}
SCSS
$custom: #3131ba;
$custom-light: #7f6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ba",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41912,
    "c": 0.2065,
    "h": 273
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#3131BA
secondary
#C9C97E
accent
#E246E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3131BA

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

Preview Lab → · Contrast checker → · Palette generator →

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