#271E47#271E47

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

Color values

HEX#271E47
RGBrgb(39, 30, 71)
HSLhsl(253, 41%, 20%)
HSVhsv(253, 58%, 28%)
CMYKcmyk(45.1%, 57.7%, 0%, 72.2%)
CIE-LABlab(14.48, 16.07, -24.31)
CIE-LCHlch(14.48, 29.14, 303.46°)
OKLaboklab(26.94% 0.0261 -0.0689)
OKLCHoklch(26.94% 0.074 290.7)
XYZxyz(2.4380, 1.8147, 6.1818)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E47 #3E471E
analogous
#1E2947 #271E47 #3C1E47
triadic
#271E47 #47271E #1E4727
tetradic
#271E47 #471E29 #3E471E #1E473C
square
#271E47 #471E29 #3E471E #1E473C
split-complementary
#271E47 #473C1E #29471E
monochromatic
#0C0916 #0F0C1C #271E47 #3F3072 #56429D

Accessibility & contrast

On white

15.41
#271E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E47
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E47#FFFFFF#000000##FFFFFF
##271E471.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2548
Deuteranopia (green-blind)
#0E2446
Tritanopia (blue-blind)
#1E262F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271e47;
/* rgb */ color: rgb(39, 30, 71);
/* oklch */ color: oklch(26.9% 0.074 290.7);
Tailwind
colors: {
  custom: {
    50: '#635a7a',
    500: '#271e47',
    950: '#000000',
  },
}
SCSS
$custom: #271e47;
$custom-light: #635a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#271e47",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 71
  },
  "hsl": {
    "h": 253.171,
    "s": 40.594,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26935,
    "c": 0.07371,
    "h": 290.7
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#271E47
secondary
#707C45
accent
#D057B6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271E47

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

Preview Lab → · Contrast checker → · Palette generator →

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