#3131CA#3131CA

#3131CA is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.226 H 272.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3131CA
RGBrgb(49, 49, 202)
HSLhsl(240, 61%, 49%)
HSVhsv(240, 76%, 79%)
CMYKcmyk(75.7%, 75.7%, 0%, 20.8%)
CIE-LABlab(32.06, 50.60, -77.90)
CIE-LCHlch(32.06, 92.89, 303.00°)
OKLaboklab(43.6% 0.0079 -0.2255)
OKLCHoklch(43.6% 0.226 272)
XYZxyz(13.0220, 7.1125, 56.5522)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131CA #CACA31
analogous
#317ECA #3131CA #7E31CA
triadic
#3131CA #CA3131 #31CA31
tetradic
#3131CA #CA317E #CACA31 #31CA7E
square
#3131CA #CA317E #CACA31 #31CA7E
split-complementary
#3131CA #CA7E31 #7ECA31
monochromatic
#191967 #252599 #3131CA #6060D8 #9191E4

Accessibility & contrast

On white

8.67
#3131CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3131CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131CA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131CA#FFFFFF#000000##FFFFFF
##3131CA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CE
Deuteranopia (green-blind)
#0044C7
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3131ca;
/* rgb */ color: rgb(49, 49, 202);
/* oklch */ color: oklch(43.6% 0.226 272.0);
Tailwind
colors: {
  custom: {
    50: '#826cdc',
    500: '#3131ca',
    950: '#000000',
  },
}
SCSS
$custom: #3131ca;
$custom-light: #826cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3131ca",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.43597,
    "c": 0.22564,
    "h": 272
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#3131CA
secondary
#CFCF88
accent
#E444E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3131CA

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

Preview Lab → · Contrast checker → · Palette generator →

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