#271A4F#271A4F

#271A4F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.093 H 290.0°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#271A4F
RGBrgb(39, 26, 79)
HSLhsl(255, 50%, 21%)
HSVhsv(255, 67%, 31%)
CMYKcmyk(50.6%, 67.1%, 0%, 69%)
CIE-LABlab(14.03, 21.55, -30.55)
CIE-LCHlch(14.03, 37.39, 305.21°)
OKLaboklab(26.8% 0.0317 -0.0873)
OKLCHoklch(26.8% 0.093 290)
XYZxyz(2.6170, 1.7345, 7.5925)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A4F #424F1A
analogous
#1A274F #271A4F #411A4F
triadic
#271A4F #4F271A #1A4F27
tetradic
#271A4F #4F1A27 #424F1A #1A4F41
square
#271A4F #4F1A27 #424F1A #1A4F41
split-complementary
#271A4F #4F411A #274F1A
monochromatic
#0B0817 #100B21 #271A4F #3E297D #5438AB

Accessibility & contrast

On white

15.59
#271A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A4F
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A4F#FFFFFF#000000##FFFFFF
##271A4F1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#1B2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271a4f;
/* rgb */ color: rgb(39, 26, 79);
/* oklch */ color: oklch(26.8% 0.093 290.0);
Tailwind
colors: {
  custom: {
    50: '#655781',
    500: '#271a4f',
    950: '#000000',
  },
}
SCSS
$custom: #271a4f;
$custom-light: #655781;
$custom-dark: #000000;
JSON
{
  "hex": "#271a4f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 254.717,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26798,
    "c": 0.09287,
    "h": 290
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#271A4F
secondary
#748540
accent
#DA4EB8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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