#271A43#271A43

#271A43 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.8% C 0.075 H 295.3°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#271A43
RGBrgb(39, 26, 67)
HSLhsl(259, 44%, 18%)
HSVhsv(259, 61%, 26%)
CMYKcmyk(41.8%, 61.2%, 0%, 73.7%)
CIE-LABlab(13.08, 17.56, -23.78)
CIE-LCHlch(13.08, 29.56, 306.45°)
OKLaboklab(25.8% 0.0319 -0.0674)
OKLCHoklch(25.8% 0.075 295.3)
XYZxyz(2.2190, 1.5753, 5.4963)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A43 #36431A
analogous
#1A2143 #271A43 #3B1A43
triadic
#271A43 #43271A #1A4327
tetradic
#271A43 #431A21 #36431A #1A433B
square
#271A43 #431A21 #36431A #1A433B
split-complementary
#271A43 #433B1A #21431A
monochromatic
#0D0916 #0D0917 #271A43 #412B6F #5A3C9B

Accessibility & contrast

On white

15.97
#271A43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271A43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A43
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A43#FFFFFF#000000##FFFFFF
##271A431.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082244
Deuteranopia (green-blind)
#0C2142
Tritanopia (blue-blind)
#20222B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271a43;
/* rgb */ color: rgb(39, 26, 67);
/* oklch */ color: oklch(25.8% 0.075 295.3);
Tailwind
colors: {
  custom: {
    50: '#635777',
    500: '#271a43',
    950: '#000000',
  },
}
SCSS
$custom: #271a43;
$custom-light: #635777;
$custom-dark: #000000;
JSON
{
  "hex": "#271a43",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 67
  },
  "hsl": {
    "h": 259.024,
    "s": 44.086,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25798,
    "c": 0.07455,
    "h": 295.3
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#271A43
secondary
#677940
accent
#D454AB
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271A43

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

Preview Lab → · Contrast checker → · Palette generator →

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