#271A3D#271A3D

#271A3D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.3% C 0.065 H 298.8°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#271A3D
RGBrgb(39, 26, 61)
HSLhsl(262, 40%, 17%)
HSVhsv(262, 57%, 24%)
CMYKcmyk(36.1%, 57.4%, 0%, 76.1%)
CIE-LABlab(12.65, 15.64, -20.24)
CIE-LCHlch(12.65, 25.58, 307.69°)
OKLaboklab(25.34% 0.0314 -0.057)
OKLCHoklch(25.34% 0.065 298.8)
XYZxyz(2.0482, 1.5070, 4.5970)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A3D #303D1A
analogous
#1A1F3D #271A3D #391A3D
triadic
#271A3D #3D271A #1A3D27
tetradic
#271A3D #3D1A1F #303D1A #1A3D39
square
#271A3D #3D1A1F #303D1A #1A3D39
split-complementary
#271A3D #3D391A #1F3D1A
monochromatic
#0E0915 #0E0915 #271A3D #422C68 #5E3F93

Accessibility & contrast

On white

16.14
#271A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A3D
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A3D#FFFFFF#000000##FFFFFF
##271A3D1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E213E
Deuteranopia (green-blind)
#11213C
Tritanopia (blue-blind)
#222128
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271a3d;
/* rgb */ color: rgb(39, 26, 61);
/* oklch */ color: oklch(25.3% 0.065 298.8);
Tailwind
colors: {
  custom: {
    50: '#625673',
    500: '#271a3d',
    950: '#000000',
  },
}
SCSS
$custom: #271a3d;
$custom-light: #625673;
$custom-dark: #000000;
JSON
{
  "hex": "#271a3d",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 61
  },
  "hsl": {
    "h": 262.286,
    "s": 40.23,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25344,
    "c": 0.06508,
    "h": 298.8
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#271A3D
secondary
#607340
accent
#D058A3
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050308
muted
#79787B

Preview Lab

Preview with #271A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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