#271B4F#271B4F

#271B4F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.091 H 289.5°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#271B4F
RGBrgb(39, 27, 79)
HSLhsl(254, 49%, 21%)
HSVhsv(254, 66%, 31%)
CMYKcmyk(50.6%, 65.8%, 0%, 69%)
CIE-LABlab(14.29, 20.87, -30.13)
CIE-LCHlch(14.29, 36.65, 304.71°)
OKLaboklab(26.99% 0.0304 -0.0861)
OKLCHoklch(26.99% 0.091 289.5)
XYZxyz(2.6395, 1.7796, 7.6000)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B4F #434F1B
analogous
#1B294F #271B4F #411B4F
triadic
#271B4F #4F271B #1B4F27
tetradic
#271B4F #4F1B29 #434F1B #1B4F41
square
#271B4F #4F1B29 #434F1B #1B4F41
split-complementary
#271B4F #4F411B #294F1B
monochromatic
#0B0817 #100B21 #271B4F #3E2B7D #543AAA

Accessibility & contrast

On white

15.49
#271B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B4F
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B4F#FFFFFF#000000##FFFFFF
##271B4F1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#1B2732
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271b4f;
/* rgb */ color: rgb(39, 27, 79);
/* oklch */ color: oklch(27.0% 0.091 289.5);
Tailwind
colors: {
  custom: {
    50: '#655881',
    500: '#271b4f',
    950: '#000000',
  },
}
SCSS
$custom: #271b4f;
$custom-light: #655881;
$custom-dark: #000000;
JSON
{
  "hex": "#271b4f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 253.846,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26987,
    "c": 0.09128,
    "h": 289.5
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#271B4F
secondary
#758541
accent
#D94FB9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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