#271A56#271A56

#271A56 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.103 H 287.5°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#271A56
RGBrgb(39, 26, 86)
HSLhsl(253, 54%, 22%)
HSVhsv(253, 70%, 34%)
CMYKcmyk(54.7%, 69.8%, 0%, 66.3%)
CIE-LABlab(14.63, 23.93, -34.32)
CIE-LCHlch(14.63, 41.84, 304.88°)
OKLaboklab(27.43% 0.0311 -0.0984)
OKLCHoklch(27.43% 0.103 287.5)
XYZxyz(2.8853, 1.8419, 9.0058)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A56 #49561A
analogous
#1A2B56 #271A56 #451A56
triadic
#271A56 #56271A #1A5627
tetradic
#271A56 #561A2B #49561A #1A5645
square
#271A56 #561A2B #49561A #1A5645
split-complementary
#271A56 #56451A #2B561A
monochromatic
#0B0717 #120C27 #271A56 #3C2885 #5236B4

Accessibility & contrast

On white

15.35
#271A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A56
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A56#FFFFFF#000000##FFFFFF
##271A561.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#162935
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271a56;
/* rgb */ color: rgb(39, 26, 86);
/* oklch */ color: oklch(27.4% 0.103 287.5);
Tailwind
colors: {
  custom: {
    50: '#665786',
    500: '#271a56',
    950: '#000000',
  },
}
SCSS
$custom: #271a56;
$custom-light: #665786;
$custom-dark: #000000;
JSON
{
  "hex": "#271a56",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 253,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27431,
    "c": 0.10318,
    "h": 287.5
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#271A56
secondary
#7C8C40
accent
#DD4BBD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271A56

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

Preview Lab → · Contrast checker → · Palette generator →

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