#3131B3#3131B3

#3131B3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.198 H 273.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#3131B3
RGBrgb(49, 49, 179)
HSLhsl(240, 57%, 45%)
HSVhsv(240, 73%, 70%)
CMYKcmyk(72.6%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.67, 43.05, -68.29)
CIE-LCHlch(29.67, 80.72, 302.22°)
OKLaboklab(41.19% 0.012 -0.1975)
OKLCHoklch(41.19% 0.198 273.5)
XYZxyz(10.4989, 6.1032, 43.2638)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B3 #B3B331
analogous
#3172B3 #3131B3 #7231B3
triadic
#3131B3 #B33131 #31B331
tetradic
#3131B3 #B33172 #B3B331 #31B372
square
#3131B3 #B33172 #B3B331 #31B372
split-complementary
#3131B3 #B37231 #72B331
monochromatic
#171753 #242483 #3131B3 #5252D0 #8282DD

Accessibility & contrast

On white

9.46
#3131B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3131B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B3
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B3#FFFFFF#000000##FFFFFF
##3131B31.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3131b3;
/* rgb */ color: rgb(49, 49, 179);
/* oklch */ color: oklch(41.2% 0.198 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d6acb',
    500: '#3131b3',
    950: '#000000',
  },
}
SCSS
$custom: #3131b3;
$custom-light: #7d6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b3",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 240,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41191,
    "c": 0.1979,
    "h": 273.5
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#3131B3
secondary
#C6C67A
accent
#E048E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3131B3

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

Preview Lab → · Contrast checker → · Palette generator →

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