#271A4E#271A4E

#271A4E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.091 H 290.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#271A4E
RGBrgb(39, 26, 78)
HSLhsl(255, 50%, 20%)
HSVhsv(255, 67%, 31%)
CMYKcmyk(50%, 66.7%, 0%, 69.4%)
CIE-LABlab(13.94, 21.22, -30.00)
CIE-LCHlch(13.94, 36.74, 305.27°)
OKLaboklab(26.71% 0.0318 -0.0857)
OKLCHoklch(26.71% 0.091 290.4)
XYZxyz(2.5809, 1.7201, 7.4023)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A4E #414E1A
analogous
#1A274E #271A4E #411A4E
triadic
#271A4E #4E271A #1A4E27
tetradic
#271A4E #4E1A27 #414E1A #1A4E41
square
#271A4E #4E1A27 #414E1A #1A4E41
split-complementary
#271A4E #4E411A #274E1A
monochromatic
#0B0817 #100B20 #271A4E #3E297C #5539AA

Accessibility & contrast

On white

15.62
#271A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A4E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A4E#FFFFFF#000000##FFFFFF
##271A4E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#1B2631
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271a4e;
/* rgb */ color: rgb(39, 26, 78);
/* oklch */ color: oklch(26.7% 0.091 290.4);
Tailwind
colors: {
  custom: {
    50: '#655780',
    500: '#271a4e',
    950: '#000000',
  },
}
SCSS
$custom: #271a4e;
$custom-light: #655780;
$custom-dark: #000000;
JSON
{
  "hex": "#271a4e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 255,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2671,
    "c": 0.09139,
    "h": 290.4
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#271A4E
secondary
#738440
accent
#DA4EB7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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