#271C33#271C33

#271C33 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.1% C 0.045 H 305.4°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#271C33
RGBrgb(39, 28, 51)
HSLhsl(269, 29%, 15%)
HSVhsv(269, 45%, 20%)
CMYKcmyk(23.5%, 45.1%, 0%, 80%)
CIE-LABlab(12.61, 11.15, -13.17)
CIE-LCHlch(12.61, 17.26, 310.25°)
OKLaboklab(25.11% 0.0259 -0.0365)
OKLCHoklch(25.11% 0.045 305.4)
XYZxyz(1.8494, 1.5009, 3.3236)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C33 #28331C
analogous
#1C1C33 #271C33 #321C33
triadic
#271C33 #33271C #1C3327
tetradic
#271C33 #331C1C #28331C #1C3332
square
#271C33 #331C1C #28331C #1C3332
split-complementary
#271C33 #33321C #1C331C
monochromatic
#0F0B14 #0F0B14 #271C33 #45325B #634782

Accessibility & contrast

On white

16.15
#271C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271C33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C33
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C33#FFFFFF#000000##FFFFFF
##271C331.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172034
Deuteranopia (green-blind)
#192132
Tritanopia (blue-blind)
#252025
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271c33;
/* rgb */ color: rgb(39, 28, 51);
/* oklch */ color: oklch(25.1% 0.045 305.4);
Tailwind
colors: {
  custom: {
    50: '#61586a',
    500: '#271c33',
    950: '#000000',
  },
}
SCSS
$custom: #271c33;
$custom-light: #61586a;
$custom-dark: #000000;
JSON
{
  "hex": "#271c33",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 51
  },
  "hsl": {
    "h": 268.696,
    "s": 29.114,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25112,
    "c": 0.04477,
    "h": 305.4
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#271C33
secondary
#566744
accent
#C56296
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271C33

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

Preview Lab → · Contrast checker → · Palette generator →

#271C33 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva