#271A4D#271A4D

#271A4D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.090 H 290.7°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#271A4D
RGBrgb(39, 26, 77)
HSLhsl(255, 50%, 20%)
HSVhsv(255, 66%, 30%)
CMYKcmyk(49.4%, 66.2%, 0%, 69.8%)
CIE-LABlab(13.86, 20.88, -29.45)
CIE-LCHlch(13.86, 36.10, 305.34°)
OKLaboklab(26.62% 0.0318 -0.084)
OKLCHoklch(26.62% 0.09 290.7)
XYZxyz(2.5453, 1.7059, 7.2149)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A4D #404D1A
analogous
#1A264D #271A4D #401A4D
triadic
#271A4D #4D271A #1A4D27
tetradic
#271A4D #4D1A26 #404D1A #1A4D40
square
#271A4D #4D1A26 #404D1A #1A4D40
split-complementary
#271A4D #4D401A #264D1A
monochromatic
#0C0817 #100B1F #271A4D #3E297B #5539A9

Accessibility & contrast

On white

15.66
#271A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A4D
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A4D#FFFFFF#000000##FFFFFF
##271A4D1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#1C2630
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271a4d;
/* rgb */ color: rgb(39, 26, 77);
/* oklch */ color: oklch(26.6% 0.090 290.7);
Tailwind
colors: {
  custom: {
    50: '#65577f',
    500: '#271a4d',
    950: '#000000',
  },
}
SCSS
$custom: #271a4d;
$custom-light: #65577f;
$custom-dark: #000000;
JSON
{
  "hex": "#271a4d",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 255.294,
    "s": 49.515,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26624,
    "c": 0.08988,
    "h": 290.7
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#271A4D
secondary
#728340
accent
#D94FB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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