#271A55#271A55

#271A55 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.102 H 287.8°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#271A55
RGBrgb(39, 26, 85)
HSLhsl(253, 53%, 22%)
HSVhsv(253, 69%, 33%)
CMYKcmyk(54.1%, 69.4%, 0%, 66.7%)
CIE-LABlab(14.55, 23.59, -33.79)
CIE-LCHlch(14.55, 41.21, 304.92°)
OKLaboklab(27.34% 0.0312 -0.0968)
OKLCHoklch(27.34% 0.102 287.8)
XYZxyz(2.8453, 1.8259, 8.7951)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A55 #48551A
analogous
#1A2B55 #271A55 #451A55
triadic
#271A55 #55271A #1A5527
tetradic
#271A55 #551A2B #48551A #1A5545
square
#271A55 #551A2B #48551A #1A5545
split-complementary
#271A55 #55451A #2B551A
monochromatic
#0B0717 #110C26 #271A55 #3D2884 #5237B3

Accessibility & contrast

On white

15.38
#271A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A55
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A55#FFFFFF#000000##FFFFFF
##271A551.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271a55;
/* rgb */ color: rgb(39, 26, 85);
/* oklch */ color: oklch(27.3% 0.102 287.8);
Tailwind
colors: {
  custom: {
    50: '#665785',
    500: '#271a55',
    950: '#000000',
  },
}
SCSS
$custom: #271a55;
$custom-light: #665785;
$custom-dark: #000000;
JSON
{
  "hex": "#271a55",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 85
  },
  "hsl": {
    "h": 253.22,
    "s": 53.153,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27338,
    "c": 0.10173,
    "h": 287.8
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A55

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

Preview Lab → · Contrast checker → · Palette generator →

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