#271A61#271A61

#271A61 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.119 H 284.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#271A61
RGBrgb(39, 26, 97)
HSLhsl(251, 58%, 24%)
HSVhsv(251, 73%, 38%)
CMYKcmyk(59.8%, 73.2%, 0%, 62%)
CIE-LABlab(15.66, 27.69, -40.01)
CIE-LCHlch(15.66, 48.66, 304.68°)
OKLaboklab(28.49% 0.0294 -0.1151)
OKLCHoklch(28.49% 0.119 284.3)
XYZxyz(3.3631, 2.0330, 11.5221)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A61 #54611A
analogous
#1A3161 #271A61 #4B1A61
triadic
#271A61 #61271A #1A6127
tetradic
#271A61 #611A31 #54611A #1A614B
square
#271A61 #611A31 #54611A #1A614B
split-complementary
#271A61 #614B1A #31611A
monochromatic
#0A0618 #140D31 #271A61 #3A2791 #4E34C2

Accessibility & contrast

On white

14.93
#271A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A61
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A61#FFFFFF#000000##FFFFFF
##271A611.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#0B2C3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271a61;
/* rgb */ color: rgb(39, 26, 97);
/* oklch */ color: oklch(28.5% 0.119 284.3);
Tailwind
colors: {
  custom: {
    50: '#68588f',
    500: '#271a61',
    950: '#000000',
  },
}
SCSS
$custom: #271a61;
$custom-light: #68588f;
$custom-dark: #000000;
JSON
{
  "hex": "#271a61",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 250.986,
    "s": 57.724,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28488,
    "c": 0.11879,
    "h": 284.3
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#271A61
secondary
#879740
accent
#E147C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271A61

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

Preview Lab → · Contrast checker → · Palette generator →

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