#271C4C#271C4C

#271C4C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.085 H 290.0°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#271C4C
RGBrgb(39, 28, 76)
HSLhsl(254, 46%, 20%)
HSVhsv(254, 63%, 30%)
CMYKcmyk(48.7%, 63.2%, 0%, 70.2%)
CIE-LABlab(14.31, 19.16, -28.04)
CIE-LCHlch(14.31, 33.96, 304.35°)
OKLaboklab(26.93% 0.0292 -0.0799)
OKLCHoklch(26.93% 0.085 290)
XYZxyz(2.5561, 1.7836, 7.0457)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C4C #414C1C
analogous
#1C294C #271C4C #3F1C4C
triadic
#271C4C #4C271C #1C4C27
tetradic
#271C4C #4C1C29 #414C1C #1C4C3F
square
#271C4C #4C1C29 #414C1C #1C4C3F
split-complementary
#271C4C #4C3F1C #294C1C
monochromatic
#0B0816 #100C1F #271C4C #3E2C79 #553DA5

Accessibility & contrast

On white

15.48
#271C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C4C
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C4C#FFFFFF#000000##FFFFFF
##271C4C1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#03234B
Tritanopia (blue-blind)
#1C2730
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271c4c;
/* rgb */ color: rgb(39, 28, 76);
/* oklch */ color: oklch(26.9% 0.085 290.0);
Tailwind
colors: {
  custom: {
    50: '#64587e',
    500: '#271c4c',
    950: '#000000',
  },
}
SCSS
$custom: #271c4c;
$custom-light: #64587e;
$custom-dark: #000000;
JSON
{
  "hex": "#271c4c",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 253.75,
    "s": 46.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26926,
    "c": 0.08506,
    "h": 290
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#271C4C
secondary
#738242
accent
#D652B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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