#31203E#31203E

#31203E is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.9% C 0.058 H 309.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#31203E
RGBrgb(49, 32, 62)
HSLhsl(274, 32%, 18%)
HSVhsv(274, 48%, 24%)
CMYKcmyk(21%, 48.4%, 0%, 75.7%)
CIE-LABlab(15.66, 15.18, -16.11)
CIE-LCHlch(15.66, 22.13, 313.31°)
OKLaboklab(27.91% 0.0365 -0.0447)
OKLCHoklch(27.91% 0.058 309.2)
XYZxyz(2.6525, 2.0338, 4.8093)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31203E #2D3E20
analogous
#22203E #31203E #3E203C
triadic
#31203E #3E3120 #203E31
tetradic
#31203E #3E2220 #2D3E20 #203C3E
square
#31203E #3E2220 #2D3E20 #203C3E
split-complementary
#31203E #3C3E20 #203E22
monochromatic
#100A14 #110B16 #31203E #513566 #714A8F

Accessibility & contrast

On white

14.93
#31203E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#31203E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31203E
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31203E#FFFFFF#000000##FFFFFF
##31203E1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19263F
Deuteranopia (green-blind)
#1E273D
Tritanopia (blue-blind)
#2F252C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31203e;
/* rgb */ color: rgb(49, 32, 62);
/* oklch */ color: oklch(27.9% 0.058 309.2);
Tailwind
colors: {
  custom: {
    50: '#6a5b73',
    500: '#31203e',
    950: '#000000',
  },
}
SCSS
$custom: #31203e;
$custom-light: #6a5b73;
$custom-dark: #000000;
JSON
{
  "hex": "#31203e",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 62
  },
  "hsl": {
    "h": 274,
    "s": 31.915,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27912,
    "c": 0.05769,
    "h": 309.2
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#31203E
secondary
#5A7248
accent
#C8608D
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #31203E

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

Preview Lab → · Contrast checker → · Palette generator →

#31203E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva