#3131CE#3131CE

#3131CE is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.230 H 271.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3131CE
RGBrgb(49, 49, 206)
HSLhsl(240, 62%, 50%)
HSVhsv(240, 76%, 81%)
CMYKcmyk(76.2%, 76.2%, 0%, 19.2%)
CIE-LABlab(32.49, 51.88, -79.52)
CIE-LCHlch(32.49, 94.95, 303.12°)
OKLaboklab(44.03% 0.0071 -0.2302)
OKLCHoklch(44.03% 0.23 271.8)
XYZxyz(13.5018, 7.3044, 59.0789)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131CE #CECE31
analogous
#317FCE #3131CE #7F31CE
triadic
#3131CE #CE3131 #31CE31
tetradic
#3131CE #CE3180 #CECE31 #31CE80
square
#3131CE #CE3180 #CECE31 #31CE80
split-complementary
#3131CE #CE8031 #80CE31
monochromatic
#19196B #25259D #3131CE #6262DA #9494E6

Accessibility & contrast

On white

8.53
#3131CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3131CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131CE
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131CE#FFFFFF#000000##FFFFFF
##3131CE1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D2
Deuteranopia (green-blind)
#0044CB
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3131ce;
/* rgb */ color: rgb(49, 49, 206);
/* oklch */ color: oklch(44.0% 0.230 271.8);
Tailwind
colors: {
  custom: {
    50: '#836cde',
    500: '#3131ce',
    950: '#000000',
  },
}
SCSS
$custom: #3131ce;
$custom-light: #836cde;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ce",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 240,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.44025,
    "c": 0.23032,
    "h": 271.8
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#3131CE
secondary
#D1D18A
accent
#E543E5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3131CE

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

Preview Lab → · Contrast checker → · Palette generator →

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