#3131CF#3131CF

#3131CF is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.1% C 0.231 H 271.7°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#3131CF
RGBrgb(49, 49, 207)
HSLhsl(240, 62%, 50%)
HSVhsv(240, 76%, 81%)
CMYKcmyk(76.3%, 76.3%, 0%, 18.8%)
CIE-LABlab(32.60, 52.20, -79.92)
CIE-LCHlch(32.60, 95.46, 303.15°)
OKLaboklab(44.13% 0.007 -0.2314)
OKLCHoklch(44.13% 0.231 271.7)
XYZxyz(13.6236, 7.3531, 59.7207)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131CF #CFCF31
analogous
#3180CF #3131CF #8031CF
triadic
#3131CF #CF3131 #31CF31
tetradic
#3131CF #CF3180 #CFCF31 #31CF80
square
#3131CF #CF3180 #CFCF31 #31CF80
split-complementary
#3131CF #CF8031 #80CF31
monochromatic
#19196C #25259E #3131CF #6363DB #9494E6

Accessibility & contrast

On white

8.50
#3131CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3131CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131CF
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131CF#FFFFFF#000000##FFFFFF
##3131CF1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D3
Deuteranopia (green-blind)
#0045CC
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3131cf;
/* rgb */ color: rgb(49, 49, 207);
/* oklch */ color: oklch(44.1% 0.231 271.7);
Tailwind
colors: {
  custom: {
    50: '#846cdf',
    500: '#3131cf',
    950: '#000000',
  },
}
SCSS
$custom: #3131cf;
$custom-light: #846cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#3131cf",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 240,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.44133,
    "c": 0.23148,
    "h": 271.7
  },
  "luminance": 0.07355
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3131CF

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

Preview Lab → · Contrast checker → · Palette generator →

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