#3131B6#3131B6

#3131B6 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.202 H 273.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#3131B6
RGBrgb(49, 49, 182)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 73%, 71%)
CMYKcmyk(73.1%, 73.1%, 0%, 28.6%)
CIE-LABlab(29.98, 44.05, -69.57)
CIE-LCHlch(29.98, 82.35, 302.34°)
OKLaboklab(41.5% 0.0115 -0.2013)
OKLCHoklch(41.5% 0.202 273.3)
XYZxyz(10.8056, 6.2259, 44.8791)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B6 #B6B631
analogous
#3173B6 #3131B6 #7331B6
triadic
#3131B6 #B63131 #31B631
tetradic
#3131B6 #B63173 #B6B631 #31B673
square
#3131B6 #B63173 #B6B631 #31B673
split-complementary
#3131B6 #B67331 #73B631
monochromatic
#171756 #242486 #3131B6 #5353D1 #8484DE

Accessibility & contrast

On white

9.35
#3131B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3131B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B6
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B6#FFFFFF#000000##FFFFFF
##3131B61.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3131b6;
/* rgb */ color: rgb(49, 49, 182);
/* oklch */ color: oklch(41.5% 0.202 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e6bcd',
    500: '#3131b6',
    950: '#000000',
  },
}
SCSS
$custom: #3131b6;
$custom-light: #7e6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b6",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 240,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41499,
    "c": 0.20161,
    "h": 273.3
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#3131B6
secondary
#C7C77C
accent
#E147E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3131B6

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

Preview Lab → · Contrast checker → · Palette generator →

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