#271C44#271C44

#271C44 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.3% C 0.072 H 293.5°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#271C44
RGBrgb(39, 28, 68)
HSLhsl(257, 42%, 19%)
HSVhsv(257, 59%, 27%)
CMYKcmyk(42.6%, 58.8%, 0%, 73.3%)
CIE-LABlab(13.70, 16.48, -23.48)
CIE-LCHlch(13.70, 28.68, 305.08°)
OKLaboklab(26.29% 0.0289 -0.0665)
OKLCHoklch(26.29% 0.072 293.5)
XYZxyz(2.2951, 1.6791, 5.6709)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C44 #39441C
analogous
#1C2544 #271C44 #3B1C44
triadic
#271C44 #44271C #1C4427
tetradic
#271C44 #441C25 #39441C #1C443B
square
#271C44 #441C25 #39441C #1C443B
split-complementary
#271C44 #443B1C #25441C
monochromatic
#0C0916 #0E0A19 #271C44 #402E6F #59409B

Accessibility & contrast

On white

15.72
#271C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C44
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C44#FFFFFF#000000##FFFFFF
##271C441.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2345
Deuteranopia (green-blind)
#0E2243
Tritanopia (blue-blind)
#20242C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271c44;
/* rgb */ color: rgb(39, 28, 68);
/* oklch */ color: oklch(26.3% 0.072 293.5);
Tailwind
colors: {
  custom: {
    50: '#635878',
    500: '#271c44',
    950: '#000000',
  },
}
SCSS
$custom: #271c44;
$custom-light: #635878;
$custom-dark: #000000;
JSON
{
  "hex": "#271c44",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 68
  },
  "hsl": {
    "h": 256.5,
    "s": 41.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26286,
    "c": 0.07249,
    "h": 293.5
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#271C44
secondary
#6A7943
accent
#D156B0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271C44

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

Preview Lab → · Contrast checker → · Palette generator →

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