#271B4C#271B4C

#271B4C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.087 H 290.6°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#271B4C
RGBrgb(39, 27, 76)
HSLhsl(255, 48%, 20%)
HSVhsv(255, 64%, 30%)
CMYKcmyk(48.7%, 64.5%, 0%, 70.2%)
CIE-LABlab(14.04, 19.86, -28.47)
CIE-LCHlch(14.04, 34.71, 304.90°)
OKLaboklab(26.73% 0.0305 -0.0812)
OKLCHoklch(26.73% 0.087 290.6)
XYZxyz(2.5328, 1.7369, 7.0379)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B4C #404C1B
analogous
#1B274C #271B4C #3F1B4C
triadic
#271B4C #4C271B #1B4C27
tetradic
#271B4C #4C1B27 #404C1B #1B4C3F
square
#271B4C #4C1B27 #404C1B #1B4C3F
split-complementary
#271B4C #4C3F1B #274C1B
monochromatic
#0C0817 #100B1F #271B4C #3E2B79 #553BA6

Accessibility & contrast

On white

15.59
#271B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B4C
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B4C#FFFFFF#000000##FFFFFF
##271B4C1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#01234B
Tritanopia (blue-blind)
#1C2630
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271b4c;
/* rgb */ color: rgb(39, 27, 76);
/* oklch */ color: oklch(26.7% 0.087 290.6);
Tailwind
colors: {
  custom: {
    50: '#64587e',
    500: '#271b4c',
    950: '#000000',
  },
}
SCSS
$custom: #271b4c;
$custom-light: #64587e;
$custom-dark: #000000;
JSON
{
  "hex": "#271b4c",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 254.694,
    "s": 47.573,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2673,
    "c": 0.08673,
    "h": 290.6
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#271B4C
secondary
#728241
accent
#D751B6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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