#831228#831228

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

Color values

HEX#831228
RGBrgb(131, 18, 40)
HSLhsl(348, 76%, 29%)
HSVhsv(348, 86%, 51%)
CMYKcmyk(0%, 86.3%, 69.5%, 48.6%)
CIE-LABlab(27.88, 46.60, 18.60)
CIE-LCHlch(27.88, 50.17, 21.76°)
OKLaboklab(39.65% 0.1385 0.0439)
OKLCHoklch(39.65% 0.145 17.6)
XYZxyz(9.9605, 5.4127, 2.5274)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831228 #12836D
analogous
#831261 #831228 #833512
triadic
#831228 #288312 #122883
tetradic
#831228 #618312 #12836D #351283
square
#831228 #618312 #12836D #351283
split-complementary
#831228 #128335 #126183
monochromatic
#1B0408 #4D0B18 #831228 #B91938 #E22D50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##831228#FFFFFF#000000##FFFFFF
##8312281.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)
#363328
Deuteranopia (green-blind)
#524A25
Tritanopia (blue-blind)
#90001C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #831228;
/* rgb */ color: rgb(131, 18, 40);
/* oklch */ color: oklch(39.7% 0.145 17.6);
Tailwind
colors: {
  custom: {
    50: '#ae5f61',
    500: '#831228',
    950: '#000000',
  },
}
SCSS
$custom: #831228;
$custom-light: #ae5f61;
$custom-dark: #000000;
JSON
{
  "hex": "#831228",
  "rgb": {
    "r": 131,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 348.319,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39654,
    "c": 0.14524,
    "h": 17.6
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#831228
secondary
#38B89F
accent
#F2CE35
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120505
muted
#817979

Preview Lab

Preview with #831228

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

Preview Lab → · Contrast checker → · Palette generator →

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