#271A44#271A44

#271A44 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.076 H 294.8°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#271A44
RGBrgb(39, 26, 68)
HSLhsl(259, 45%, 18%)
HSVhsv(259, 62%, 27%)
CMYKcmyk(42.6%, 61.8%, 0%, 73.3%)
CIE-LABlab(13.15, 17.89, -24.36)
CIE-LCHlch(13.15, 30.22, 306.29°)
OKLaboklab(25.88% 0.0319 -0.0691)
OKLCHoklch(25.88% 0.076 294.8)
XYZxyz(2.2492, 1.5874, 5.6556)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A44 #37441A
analogous
#1A2244 #271A44 #3C1A44
triadic
#271A44 #44271A #1A4427
tetradic
#271A44 #441A22 #37441A #1A443C
square
#271A44 #441A22 #37441A #1A443C
split-complementary
#271A44 #443C1A #22441A
monochromatic
#0D0816 #0E0918 #271A44 #402B70 #5A3C9D

Accessibility & contrast

On white

15.94
#271A44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271A44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A44
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A44#FFFFFF#000000##FFFFFF
##271A441.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072245
Deuteranopia (green-blind)
#0A2143
Tritanopia (blue-blind)
#20232C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271a44;
/* rgb */ color: rgb(39, 26, 68);
/* oklch */ color: oklch(25.9% 0.076 294.8);
Tailwind
colors: {
  custom: {
    50: '#635778',
    500: '#271a44',
    950: '#000000',
  },
}
SCSS
$custom: #271a44;
$custom-light: #635778;
$custom-dark: #000000;
JSON
{
  "hex": "#271a44",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 68
  },
  "hsl": {
    "h": 258.571,
    "s": 44.681,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25877,
    "c": 0.0761,
    "h": 294.8
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#271A44
secondary
#687A40
accent
#D453AC
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271A44

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

Preview Lab → · Contrast checker → · Palette generator →

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