#271A54#271A54

#271A54 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.100 H 288.2°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#271A54
RGBrgb(39, 26, 84)
HSLhsl(253, 53%, 22%)
HSVhsv(253, 69%, 33%)
CMYKcmyk(53.6%, 69%, 0%, 67.1%)
CIE-LABlab(14.46, 23.25, -33.26)
CIE-LCHlch(14.46, 40.58, 304.96°)
OKLaboklab(27.25% 0.0313 -0.0953)
OKLCHoklch(27.25% 0.1 288.2)
XYZxyz(2.8059, 1.8101, 8.5873)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A54 #47541A
analogous
#1A2A54 #271A54 #441A54
triadic
#271A54 #54271A #1A5427
tetradic
#271A54 #541A2A #47541A #1A5444
square
#271A54 #541A2A #47541A #1A5444
split-complementary
#271A54 #54441A #2A541A
monochromatic
#0B0717 #110C25 #271A54 #3D2883 #5237B1

Accessibility & contrast

On white

15.42
#271A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A54
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A54#FFFFFF#000000##FFFFFF
##271A541.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#172834
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271a54;
/* rgb */ color: rgb(39, 26, 84);
/* oklch */ color: oklch(27.2% 0.100 288.2);
Tailwind
colors: {
  custom: {
    50: '#665785',
    500: '#271a54',
    950: '#000000',
  },
}
SCSS
$custom: #271a54;
$custom-light: #665785;
$custom-dark: #000000;
JSON
{
  "hex": "#271a54",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 253.448,
    "s": 52.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27246,
    "c": 0.10027,
    "h": 288.2
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#271A54
secondary
#798A40
accent
#DC4CBC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271A54

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

Preview Lab → · Contrast checker → · Palette generator →

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