#831227#831227

#831227 is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.6% C 0.145 H 18.1°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#831227
RGBrgb(131, 18, 39)
HSLhsl(349, 76%, 29%)
HSVhsv(349, 86%, 51%)
CMYKcmyk(0%, 86.3%, 70.2%, 48.6%)
CIE-LABlab(27.86, 46.54, 19.25)
CIE-LCHlch(27.86, 50.36, 22.47°)
OKLaboklab(39.63% 0.138 0.0452)
OKLCHoklch(39.63% 0.145 18.1)
XYZxyz(9.9437, 5.4060, 2.4389)
Luminance0.0540 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831227 #12836E
analogous
#831260 #831227 #833612
triadic
#831227 #278312 #122783
tetradic
#831227 #608312 #12836E #361283
square
#831227 #608312 #12836E #361283
split-complementary
#831227 #128336 #126083
monochromatic
#1B0408 #4D0B17 #831227 #B91937 #E22D4F

Accessibility & contrast

On white

10.09
#831227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#831227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831227
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831227#FFFFFF#000000##FFFFFF
##8312271.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363327
Deuteranopia (green-blind)
#524A24
Tritanopia (blue-blind)
#90001C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #831227;
/* rgb */ color: rgb(131, 18, 39);
/* oklch */ color: oklch(39.6% 0.145 18.1);
Tailwind
colors: {
  custom: {
    50: '#af5e60',
    500: '#831227',
    950: '#000000',
  },
}
SCSS
$custom: #831227;
$custom-light: #af5e60;
$custom-dark: #000000;
JSON
{
  "hex": "#831227",
  "rgb": {
    "r": 131,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 348.85,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39634,
    "c": 0.14525,
    "h": 18.1
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#831227
secondary
#38B8A1
accent
#F2CF35
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120505
muted
#817979

Preview Lab

Preview with #831227

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

Preview Lab → · Contrast checker → · Palette generator →

#831227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva