#271A57#271A57

#271A57 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.105 H 287.2°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#271A57
RGBrgb(39, 26, 87)
HSLhsl(253, 54%, 22%)
HSVhsv(253, 70%, 34%)
CMYKcmyk(55.2%, 70.1%, 0%, 65.9%)
CIE-LABlab(14.72, 24.27, -34.85)
CIE-LCHlch(14.72, 42.47, 304.85°)
OKLaboklab(27.52% 0.031 -0.0999)
OKLCHoklch(27.52% 0.105 287.2)
XYZxyz(2.9259, 1.8581, 9.2195)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A57 #4A571A
analogous
#1A2C57 #271A57 #461A57
triadic
#271A57 #57271A #1A5727
tetradic
#271A57 #571A2C #4A571A #1A5746
square
#271A57 #571A2C #4A571A #1A5746
split-complementary
#271A57 #57461A #2C571A
monochromatic
#0B0718 #120C28 #271A57 #3C2886 #5136B5

Accessibility & contrast

On white

15.31
#271A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A57
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A57#FFFFFF#000000##FFFFFF
##271A571.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#152935
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271a57;
/* rgb */ color: rgb(39, 26, 87);
/* oklch */ color: oklch(27.5% 0.105 287.2);
Tailwind
colors: {
  custom: {
    50: '#665787',
    500: '#271a57',
    950: '#000000',
  },
}
SCSS
$custom: #271a57;
$custom-light: #665787;
$custom-dark: #000000;
JSON
{
  "hex": "#271a57",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 252.787,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27524,
    "c": 0.10462,
    "h": 287.2
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#271A57
secondary
#7D8D40
accent
#DD4ABE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271A57

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

Preview Lab → · Contrast checker → · Palette generator →

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