#271A4C#271A4C

#271A4C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.088 H 291.1°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#271A4C
RGBrgb(39, 26, 76)
HSLhsl(256, 49%, 20%)
HSVhsv(256, 66%, 30%)
CMYKcmyk(48.7%, 65.8%, 0%, 70.2%)
CIE-LABlab(13.78, 20.54, -28.89)
CIE-LCHlch(13.78, 35.45, 305.41°)
OKLaboklab(26.54% 0.0319 -0.0824)
OKLCHoklch(26.54% 0.088 291.1)
XYZxyz(2.5102, 1.6918, 7.0304)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A4C #3F4C1A
analogous
#1A264C #271A4C #401A4C
triadic
#271A4C #4C271A #1A4C27
tetradic
#271A4C #4C1A26 #3F4C1A #1A4C40
square
#271A4C #4C1A26 #3F4C1A #1A4C40
split-complementary
#271A4C #4C401A #264C1A
monochromatic
#0C0817 #100A1E #271A4C #3E2A7A #5639A7

Accessibility & contrast

On white

15.69
#271A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A4C
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A4C#FFFFFF#000000##FFFFFF
##271A4C1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#1C2530
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271a4c;
/* rgb */ color: rgb(39, 26, 76);
/* oklch */ color: oklch(26.5% 0.088 291.1);
Tailwind
colors: {
  custom: {
    50: '#65577e',
    500: '#271a4c',
    950: '#000000',
  },
}
SCSS
$custom: #271a4c;
$custom-light: #65577e;
$custom-dark: #000000;
JSON
{
  "hex": "#271a4c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 255.6,
    "s": 49.02,
    "l": 20
  },
  "oklch": {
    "l": 0.26538,
    "c": 0.08837,
    "h": 291.1
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#271A4C
secondary
#718240
accent
#D94FB5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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