#271A42#271A42

#271A42 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.7% C 0.073 H 295.8°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#271A42
RGBrgb(39, 26, 66)
HSLhsl(260, 43%, 18%)
HSVhsv(260, 61%, 26%)
CMYKcmyk(40.9%, 60.6%, 0%, 74.1%)
CIE-LABlab(13.01, 17.24, -23.20)
CIE-LCHlch(13.01, 28.90, 306.62°)
OKLaboklab(25.72% 0.0318 -0.0657)
OKLCHoklch(25.72% 0.073 295.8)
XYZxyz(2.1892, 1.5634, 5.3396)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A42 #35421A
analogous
#1A2142 #271A42 #3B1A42
triadic
#271A42 #42271A #1A4227
tetradic
#271A42 #421A21 #35421A #1A423B
square
#271A42 #421A21 #35421A #1A423B
split-complementary
#271A42 #423B1A #21421A
monochromatic
#0D0916 #0D0916 #271A42 #412B6E #5B3D9A

Accessibility & contrast

On white

16.00
#271A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A42
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A42#FFFFFF#000000##FFFFFF
##271A421.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092243
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#21222B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271a42;
/* rgb */ color: rgb(39, 26, 66);
/* oklch */ color: oklch(25.7% 0.073 295.8);
Tailwind
colors: {
  custom: {
    50: '#635776',
    500: '#271a42',
    950: '#000000',
  },
}
SCSS
$custom: #271a42;
$custom-light: #635776;
$custom-dark: #000000;
JSON
{
  "hex": "#271a42",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 259.5,
    "s": 43.478,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25721,
    "c": 0.07298,
    "h": 295.8
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#271A42
secondary
#667840
accent
#D355AA
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #271A42

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

Preview Lab → · Contrast checker → · Palette generator →

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