#271B53#271B53

#271B53 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.097 H 288.1°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#271B53
RGBrgb(39, 27, 83)
HSLhsl(253, 51%, 22%)
HSVhsv(253, 67%, 33%)
CMYKcmyk(53%, 67.5%, 0%, 67.5%)
CIE-LABlab(14.62, 22.24, -32.31)
CIE-LCHlch(14.62, 39.22, 304.54°)
OKLaboklab(27.34% 0.0302 -0.0925)
OKLCHoklch(27.34% 0.097 288.1)
XYZxyz(2.7895, 1.8396, 8.3900)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B53 #47531B
analogous
#1B2B53 #271B53 #431B53
triadic
#271B53 #53271B #1B5327
tetradic
#271B53 #531B2B #47531B #1B5343
square
#271B53 #531B2B #47531B #1B5343
split-complementary
#271B53 #53431B #2B531B
monochromatic
#0B0817 #110C25 #271B53 #3D2A81 #5239AF

Accessibility & contrast

On white

15.35
#271B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B53
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B53#FFFFFF#000000##FFFFFF
##271B531.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#182834
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271b53;
/* rgb */ color: rgb(39, 27, 83);
/* oklch */ color: oklch(27.3% 0.097 288.1);
Tailwind
colors: {
  custom: {
    50: '#665884',
    500: '#271b53',
    950: '#000000',
  },
}
SCSS
$custom: #271b53;
$custom-light: #665884;
$custom-dark: #000000;
JSON
{
  "hex": "#271b53",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 252.857,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27339,
    "c": 0.09727,
    "h": 288.1
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#271B53
secondary
#798941
accent
#DA4DBC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271B53

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

Preview Lab → · Contrast checker → · Palette generator →

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