#3131B2#3131B2

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

Color values

HEX#3131B2
RGBrgb(49, 49, 178)
HSLhsl(240, 57%, 45%)
HSVhsv(240, 72%, 70%)
CMYKcmyk(72.5%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.57, 42.71, -67.86)
CIE-LCHlch(29.57, 80.18, 302.19°)
OKLaboklab(41.09% 0.0121 -0.1963)
OKLCHoklch(41.09% 0.197 273.5)
XYZxyz(10.3981, 6.0629, 42.7331)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B2 #B2B231
analogous
#3172B2 #3131B2 #7231B2
triadic
#3131B2 #B23131 #31B231
tetradic
#3131B2 #B23172 #B2B231 #31B272
square
#3131B2 #B23172 #B2B231 #31B272
split-complementary
#3131B2 #B27231 #72B231
monochromatic
#171752 #242482 #3131B2 #5151CF #8181DC

Accessibility & contrast

On white

9.49
#3131B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3131B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B2
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B2#FFFFFF#000000##FFFFFF
##3131B21.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3131b2;
/* rgb */ color: rgb(49, 49, 178);
/* oklch */ color: oklch(41.1% 0.197 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d6aca',
    500: '#3131b2',
    950: '#000000',
  },
}
SCSS
$custom: #3131b2;
$custom-light: #7d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b2",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41089,
    "c": 0.19665,
    "h": 273.5
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3131B2

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

Preview Lab → · Contrast checker → · Palette generator →

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