#3131AC#3131AC

#3131AC is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.189 H 274.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#3131AC
RGBrgb(49, 49, 172)
HSLhsl(240, 56%, 43%)
HSVhsv(240, 72%, 67%)
CMYKcmyk(71.5%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.97, 40.68, -65.26)
CIE-LCHlch(28.97, 76.90, 301.94°)
OKLaboklab(40.48% 0.0131 -0.1887)
OKLCHoklch(40.48% 0.189 274)
XYZxyz(9.8089, 5.8272, 39.6296)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131AC #ACAC31
analogous
#316EAC #3131AC #6E31AC
triadic
#3131AC #AC3131 #31AC31
tetradic
#3131AC #AC316E #ACAC31 #31AC6E
square
#3131AC #AC316E #ACAC31 #31AC6E
split-complementary
#3131AC #AC6E31 #6EAC31
monochromatic
#16164D #23237C #3131AC #4E4ECC #7D7DDA

Accessibility & contrast

On white

9.70
#3131AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3131AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131AC
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131AC#FFFFFF#000000##FFFFFF
##3131AC1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3131ac;
/* rgb */ color: rgb(49, 49, 172);
/* oklch */ color: oklch(40.5% 0.189 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b6ac6',
    500: '#3131ac',
    950: '#000000',
  },
}
SCSS
$custom: #3131ac;
$custom-light: #7b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ac",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.18914,
    "h": 274
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#3131AC
secondary
#C3C376
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3131AC

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

Preview Lab → · Contrast checker → · Palette generator →

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