#271F44#271F44

#271F44 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.067 H 291.2°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#271F44
RGBrgb(39, 31, 68)
HSLhsl(253, 37%, 19%)
HSVhsv(253, 54%, 27%)
CMYKcmyk(42.6%, 54.4%, 0%, 73.3%)
CIE-LABlab(14.56, 14.34, -22.11)
CIE-LCHlch(14.56, 26.35, 302.97°)
OKLaboklab(26.93% 0.0242 -0.0625)
OKLCHoklch(26.93% 0.067 291.2)
XYZxyz(2.3698, 1.8286, 5.6958)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F44 #3C441F
analogous
#1F2A44 #271F44 #3A1F44
triadic
#271F44 #44271F #1F4427
tetradic
#271F44 #441F2A #3C441F #1F443A
square
#271F44 #441F2A #3C441F #1F443A
split-complementary
#271F44 #443A1F #2A441F
monochromatic
#0C0A15 #0F0C1A #271F44 #3F326E #574598

Accessibility & contrast

On white

15.38
#271F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F44
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F44#FFFFFF#000000##FFFFFF
##271F441.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112545
Deuteranopia (green-blind)
#122443
Tritanopia (blue-blind)
#20262E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271f44;
/* rgb */ color: rgb(39, 31, 68);
/* oklch */ color: oklch(26.9% 0.067 291.2);
Tailwind
colors: {
  custom: {
    50: '#635a78',
    500: '#271f44',
    950: '#000000',
  },
}
SCSS
$custom: #271f44;
$custom-light: #635a78;
$custom-dark: #000000;
JSON
{
  "hex": "#271f44",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 252.973,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26926,
    "c": 0.06701,
    "h": 291.2
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#271F44
secondary
#6E7846
accent
#CD5AB5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #271F44

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

Preview Lab → · Contrast checker → · Palette generator →

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