#271B41#271B41

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

Color values

HEX#271B41
RGBrgb(39, 27, 65)
HSLhsl(259, 41%, 18%)
HSVhsv(259, 58%, 25%)
CMYKcmyk(40%, 58.5%, 0%, 74.5%)
CIE-LABlab(13.21, 16.21, -22.17)
CIE-LCHlch(13.21, 27.46, 306.17°)
OKLaboklab(25.85% 0.0302 -0.0627)
OKLCHoklch(25.85% 0.07 295.7)
XYZxyz(2.1825, 1.5968, 5.1932)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B41 #35411B
analogous
#1B2241 #271B41 #3A1B41
triadic
#271B41 #41271B #1B4127
tetradic
#271B41 #411B22 #35411B #1B413A
square
#271B41 #411B22 #35411B #1B413A
split-complementary
#271B41 #413A1B #22411B
monochromatic
#0D0916 #0D0916 #271B41 #412D6C #5B3F97

Accessibility & contrast

On white

15.92
#271B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B41
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B41#FFFFFF#000000##FFFFFF
##271B411.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2242
Deuteranopia (green-blind)
#0F2140
Tritanopia (blue-blind)
#21232B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271b41;
/* rgb */ color: rgb(39, 27, 65);
/* oklch */ color: oklch(25.9% 0.070 295.7);
Tailwind
colors: {
  custom: {
    50: '#635776',
    500: '#271b41',
    950: '#000000',
  },
}
SCSS
$custom: #271b41;
$custom-light: #635776;
$custom-dark: #000000;
JSON
{
  "hex": "#271b41",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 258.947,
    "s": 41.304,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2585,
    "c": 0.06956,
    "h": 295.7
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#271B41
secondary
#667641
accent
#D157AA
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #271B41

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

Preview Lab → · Contrast checker → · Palette generator →

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