#3131B4#3131B4

#3131B4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.199 H 273.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#3131B4
RGBrgb(49, 49, 180)
HSLhsl(240, 57%, 45%)
HSVhsv(240, 73%, 71%)
CMYKcmyk(72.8%, 72.8%, 0%, 29.4%)
CIE-LABlab(29.77, 43.38, -68.72)
CIE-LCHlch(29.77, 81.27, 302.26°)
OKLaboklab(41.29% 0.0118 -0.1988)
OKLCHoklch(41.29% 0.199 273.4)
XYZxyz(10.6004, 6.1438, 43.7984)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B4 #B4B431
analogous
#3173B4 #3131B4 #7331B4
triadic
#3131B4 #B43131 #31B431
tetradic
#3131B4 #B43173 #B4B431 #31B473
square
#3131B4 #B43173 #B4B431 #31B473
split-complementary
#3131B4 #B47331 #73B431
monochromatic
#171754 #242484 #3131B4 #5252D0 #8282DD

Accessibility & contrast

On white

9.42
#3131B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3131B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B4
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B4#FFFFFF#000000##FFFFFF
##3131B41.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3131b4;
/* rgb */ color: rgb(49, 49, 180);
/* oklch */ color: oklch(41.3% 0.199 273.4);
Tailwind
colors: {
  custom: {
    50: '#7d6acc',
    500: '#3131b4',
    950: '#000000',
  },
}
SCSS
$custom: #3131b4;
$custom-light: #7d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b4",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 240,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.19914,
    "h": 273.4
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#3131B4
secondary
#C6C67B
accent
#E047E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3131B4

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

Preview Lab → · Contrast checker → · Palette generator →

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