#3131C8#3131C8

#3131C8 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.223 H 272.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#3131C8
RGBrgb(49, 49, 200)
HSLhsl(240, 61%, 49%)
HSVhsv(240, 76%, 78%)
CMYKcmyk(75.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(31.85, 49.95, -77.08)
CIE-LCHlch(31.85, 91.86, 302.95°)
OKLaboklab(43.38% 0.0083 -0.2231)
OKLCHoklch(43.38% 0.223 272.1)
XYZxyz(12.7868, 7.0184, 55.3132)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131C8 #C8C831
analogous
#317DC8 #3131C8 #7D31C8
triadic
#3131C8 #C83131 #31C831
tetradic
#3131C8 #C8317D #C8C831 #31C87D
square
#3131C8 #C8317D #C8C831 #31C87D
split-complementary
#3131C8 #C87D31 #7DC831
monochromatic
#191966 #252597 #3131C8 #5F5FD8 #9090E4

Accessibility & contrast

On white

8.74
#3131C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3131C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131C8
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131C8#FFFFFF#000000##FFFFFF
##3131C81.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CC
Deuteranopia (green-blind)
#0043C5
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3131c8;
/* rgb */ color: rgb(49, 49, 200);
/* oklch */ color: oklch(43.4% 0.223 272.1);
Tailwind
colors: {
  custom: {
    50: '#826bda',
    500: '#3131c8',
    950: '#000000',
  },
}
SCSS
$custom: #3131c8;
$custom-light: #826bda;
$custom-dark: #000000;
JSON
{
  "hex": "#3131c8",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 240,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43384,
    "c": 0.22328,
    "h": 272.1
  },
  "luminance": 0.0702
}

Semantic roles & 50–950 ramp

primary
#3131C8
secondary
#CECE86
accent
#E444E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3131C8

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

Preview Lab → · Contrast checker → · Palette generator →

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