#31318D#31318D

#31318D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.148 H 276.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#31318D
RGBrgb(49, 49, 141)
HSLhsl(240, 48%, 37%)
HSVhsv(240, 65%, 55%)
CMYKcmyk(65.2%, 65.2%, 0%, 44.7%)
CIE-LABlab(26.08, 29.92, -51.12)
CIE-LCHlch(26.08, 59.23, 300.34°)
OKLaboklab(37.5% 0.0169 -0.1473)
OKLCHoklch(37.5% 0.148 276.5)
XYZxyz(7.1711, 4.7721, 25.7373)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31318D #8D8D31
analogous
#315F8D #31318D #5F318D
triadic
#31318D #8D3131 #318D31
tetradic
#31318D #8D315F #8D8D31 #318D5F
square
#31318D #8D315F #8D8D31 #318D5F
split-complementary
#31318D #8D5F31 #5F8D31
monochromatic
#111132 #212160 #31318D #4141BA #6C6CCC

Accessibility & contrast

On white

10.74
#31318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#31318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31318D
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31318D#FFFFFF#000000##FFFFFF
##31318D1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31318d;
/* rgb */ color: rgb(49, 49, 141);
/* oklch */ color: oklch(37.5% 0.148 276.5);
Tailwind
colors: {
  custom: {
    50: '#7569af',
    500: '#31318d',
    950: '#000000',
  },
}
SCSS
$custom: #31318d;
$custom-light: #7569af;
$custom-dark: #000000;
JSON
{
  "hex": "#31318d",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37501,
    "c": 0.14827,
    "h": 276.5
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#31318D
secondary
#B4B466
accent
#D850D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31318D

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

Preview Lab → · Contrast checker → · Palette generator →

#31318D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva