#3131BB#3131BB

#3131BB is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.208 H 272.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#3131BB
RGBrgb(49, 49, 187)
HSLhsl(240, 58%, 46%)
HSVhsv(240, 74%, 73%)
CMYKcmyk(73.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(30.49, 45.71, -71.69)
CIE-LCHlch(30.49, 85.02, 302.52°)
OKLaboklab(42.02% 0.0106 -0.2074)
OKLCHoklch(42.02% 0.208 272.9)
XYZxyz(11.3316, 6.4363, 47.6492)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131BB #BBBB31
analogous
#3176BB #3131BB #7631BB
triadic
#3131BB #BB3131 #31BB31
tetradic
#3131BB #BB3176 #BBBB31 #31BB76
square
#3131BB #BB3176 #BBBB31 #31BB76
split-complementary
#3131BB #BB7631 #76BB31
monochromatic
#18185A #24248B #3131BB #5656D3 #8787E0

Accessibility & contrast

On white

9.18
#3131BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3131BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131BB
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131BB#FFFFFF#000000##FFFFFF
##3131BB1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3131bb;
/* rgb */ color: rgb(49, 49, 187);
/* oklch */ color: oklch(42.0% 0.208 272.9);
Tailwind
colors: {
  custom: {
    50: '#7f6bd1',
    500: '#3131bb',
    950: '#000000',
  },
}
SCSS
$custom: #3131bb;
$custom-light: #7f6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3131bb",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 240,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42016,
    "c": 0.20772,
    "h": 272.9
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#3131BB
secondary
#C9C97F
accent
#E246E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3131BB

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

Preview Lab → · Contrast checker → · Palette generator →

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