#271B46#271B46

#271B46 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.2% C 0.077 H 293.2°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#271B46
RGBrgb(39, 27, 70)
HSLhsl(257, 44%, 19%)
HSVhsv(257, 61%, 27%)
CMYKcmyk(44.3%, 61.4%, 0%, 72.5%)
CIE-LABlab(13.57, 17.85, -25.07)
CIE-LCHlch(13.57, 30.78, 305.44°)
OKLaboklab(26.24% 0.0305 -0.0712)
OKLCHoklch(26.24% 0.077 293.2)
XYZxyz(2.3338, 1.6573, 5.9901)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B46 #3A461B
analogous
#1B2546 #271B46 #3D1B46
triadic
#271B46 #46271B #1B4627
tetradic
#271B46 #461B25 #3A461B #1B463D
square
#271B46 #461B25 #3A461B #1B463D
split-complementary
#271B46 #463D1B #25461B
monochromatic
#0C0916 #0E0A1A #271B46 #402C72 #583D9E

Accessibility & contrast

On white

15.77
#271B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B46
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B46#FFFFFF#000000##FFFFFF
##271B461.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072347
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#1F242D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271b46;
/* rgb */ color: rgb(39, 27, 70);
/* oklch */ color: oklch(26.2% 0.077 293.2);
Tailwind
colors: {
  custom: {
    50: '#64577a',
    500: '#271b46',
    950: '#000000',
  },
}
SCSS
$custom: #271b46;
$custom-light: #64577a;
$custom-dark: #000000;
JSON
{
  "hex": "#271b46",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 70
  },
  "hsl": {
    "h": 256.744,
    "s": 44.33,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26237,
    "c": 0.07744,
    "h": 293.2
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#271B46
secondary
#6B7C41
accent
#D454B0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271B46

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

Preview Lab → · Contrast checker → · Palette generator →

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