#271A60#271A60

#271A60 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.117 H 284.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#271A60
RGBrgb(39, 26, 96)
HSLhsl(251, 57%, 24%)
HSVhsv(251, 73%, 38%)
CMYKcmyk(59.4%, 72.9%, 0%, 62.4%)
CIE-LABlab(15.56, 27.34, -39.51)
CIE-LCHlch(15.56, 48.05, 304.69°)
OKLaboklab(28.39% 0.0296 -0.1136)
OKLCHoklch(28.39% 0.117 284.6)
XYZxyz(3.3168, 2.0145, 11.2781)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A60 #53601A
analogous
#1A3060 #271A60 #4A1A60
triadic
#271A60 #60271A #1A6027
tetradic
#271A60 #601A30 #53601A #1A604A
square
#271A60 #601A30 #53601A #1A604A
split-complementary
#271A60 #604A1A #30601A
monochromatic
#0A0718 #130D30 #271A60 #3B2790 #4E34C0

Accessibility & contrast

On white

14.97
#271A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A60
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A60#FFFFFF#000000##FFFFFF
##271A601.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#0C2C3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271a60;
/* rgb */ color: rgb(39, 26, 96);
/* oklch */ color: oklch(28.4% 0.117 284.6);
Tailwind
colors: {
  custom: {
    50: '#68578e',
    500: '#271a60',
    950: '#000000',
  },
}
SCSS
$custom: #271a60;
$custom-light: #68578e;
$custom-dark: #000000;
JSON
{
  "hex": "#271a60",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 251.143,
    "s": 57.377,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28389,
    "c": 0.1174,
    "h": 284.6
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#271A60
secondary
#869640
accent
#E147C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271A60

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

Preview Lab → · Contrast checker → · Palette generator →

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