#271D43#271D43

#271D43 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.069 H 293.2°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#271D43
RGBrgb(39, 29, 67)
HSLhsl(256, 40%, 19%)
HSVhsv(256, 57%, 26%)
CMYKcmyk(41.8%, 56.7%, 0%, 73.7%)
CIE-LABlab(13.92, 15.44, -22.44)
CIE-LCHlch(13.92, 27.24, 304.53°)
OKLaboklab(26.42% 0.0272 -0.0635)
OKLCHoklch(26.42% 0.069 293.2)
XYZxyz(2.2889, 1.7153, 5.5196)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D43 #39431D
analogous
#1D2643 #271D43 #3A1D43
triadic
#271D43 #43271D #1D4327
tetradic
#271D43 #431D26 #39431D #1D433A
square
#271D43 #431D26 #39431D #1D433A
split-complementary
#271D43 #433A1D #26431D
monochromatic
#0C0915 #0E0B18 #271D43 #402F6E #594298

Accessibility & contrast

On white

15.64
#271D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271D43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D43
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D43#FFFFFF#000000##FFFFFF
##271D431.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2444
Deuteranopia (green-blind)
#102342
Tritanopia (blue-blind)
#20252C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271d43;
/* rgb */ color: rgb(39, 29, 67);
/* oklch */ color: oklch(26.4% 0.069 293.2);
Tailwind
colors: {
  custom: {
    50: '#635977',
    500: '#271d43',
    950: '#000000',
  },
}
SCSS
$custom: #271d43;
$custom-light: #635977;
$custom-dark: #000000;
JSON
{
  "hex": "#271d43",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 67
  },
  "hsl": {
    "h": 255.789,
    "s": 39.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26421,
    "c": 0.06905,
    "h": 293.2
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#271D43
secondary
#6A7844
accent
#CF58B0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #271D43

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

Preview Lab → · Contrast checker → · Palette generator →

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