#3131B8#3131B8

#3131B8 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.204 H 273.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#3131B8
RGBrgb(49, 49, 184)
HSLhsl(240, 58%, 46%)
HSVhsv(240, 73%, 72%)
CMYKcmyk(73.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.18, 44.71, -70.42)
CIE-LCHlch(30.18, 83.42, 302.41°)
OKLaboklab(41.71% 0.0111 -0.2037)
OKLCHoklch(41.71% 0.204 273.1)
XYZxyz(11.0138, 6.3092, 45.9755)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B8 #B8B831
analogous
#3174B8 #3131B8 #7431B8
triadic
#3131B8 #B83131 #31B831
tetradic
#3131B8 #B83174 #B8B831 #31B874
square
#3131B8 #B83174 #B8B831 #31B874
split-complementary
#3131B8 #B87431 #74B831
monochromatic
#171757 #242488 #3131B8 #5555D2 #8585DE

Accessibility & contrast

On white

9.28
#3131B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3131B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B8
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B8#FFFFFF#000000##FFFFFF
##3131B81.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3131b8;
/* rgb */ color: rgb(49, 49, 184);
/* oklch */ color: oklch(41.7% 0.204 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e6bcf',
    500: '#3131b8',
    950: '#000000',
  },
}
SCSS
$custom: #3131b8;
$custom-light: #7e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b8",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 240,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.20405,
    "h": 273.1
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#3131B8
secondary
#C8C87D
accent
#E147E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3131B8

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

Preview Lab → · Contrast checker → · Palette generator →

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