#271D48#271D48

#271D48 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.8% C 0.077 H 291.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#271D48
RGBrgb(39, 29, 72)
HSLhsl(254, 43%, 20%)
HSVhsv(254, 60%, 28%)
CMYKcmyk(45.8%, 59.7%, 0%, 71.8%)
CIE-LABlab(14.28, 17.11, -25.34)
CIE-LCHlch(14.28, 30.57, 304.03°)
OKLaboklab(26.8% 0.0276 -0.072)
OKLCHoklch(26.8% 0.077 291)
XYZxyz(2.4454, 1.7779, 6.3440)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D48 #3E481D
analogous
#1D2948 #271D48 #3C1D48
triadic
#271D48 #48271D #1D4827
tetradic
#271D48 #481D29 #3E481D #1D483C
square
#271D48 #481D29 #3E481D #1D483C
split-complementary
#271D48 #483C1D #29481D
monochromatic
#0C0916 #0F0B1C #271D48 #3F2F74 #56409F

Accessibility & contrast

On white

15.49
#271D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D48
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D48#FFFFFF#000000##FFFFFF
##271D481.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092549
Deuteranopia (green-blind)
#0B2347
Tritanopia (blue-blind)
#1E262F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271d48;
/* rgb */ color: rgb(39, 29, 72);
/* oklch */ color: oklch(26.8% 0.077 291.0);
Tailwind
colors: {
  custom: {
    50: '#64597b',
    500: '#271d48',
    950: '#000000',
  },
}
SCSS
$custom: #271d48;
$custom-light: #64597b;
$custom-dark: #000000;
JSON
{
  "hex": "#271d48",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 72
  },
  "hsl": {
    "h": 253.953,
    "s": 42.574,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26804,
    "c": 0.07708,
    "h": 291
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#271D48
secondary
#707D44
accent
#D255B5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271D48

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

Preview Lab → · Contrast checker → · Palette generator →

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