#271E40#271E40

#271E40 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.062 H 293.9°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#271E40
RGBrgb(39, 30, 64)
HSLhsl(256, 36%, 18%)
HSVhsv(256, 53%, 25%)
CMYKcmyk(39.1%, 53.1%, 0%, 74.9%)
CIE-LABlab(14.00, 13.74, -20.21)
CIE-LCHlch(14.00, 24.44, 304.22°)
OKLaboklab(26.42% 0.0252 -0.0569)
OKLCHoklch(26.42% 0.062 293.9)
XYZxyz(2.2262, 1.7300, 5.0661)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E40 #37401E
analogous
#1E2640 #271E40 #381E40
triadic
#271E40 #40271E #1E4027
tetradic
#271E40 #401E26 #37401E #1E4038
square
#271E40 #401E26 #37401E #1E4038
split-complementary
#271E40 #40381E #26401E
monochromatic
#0D0A15 #0E0A16 #271E40 #40326A #5A4593

Accessibility & contrast

On white

15.60
#271E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E40
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E40#FFFFFF#000000##FFFFFF
##271E401.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122441
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#21242B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271e40;
/* rgb */ color: rgb(39, 30, 64);
/* oklch */ color: oklch(26.4% 0.062 293.9);
Tailwind
colors: {
  custom: {
    50: '#625a75',
    500: '#271e40',
    950: '#000000',
  },
}
SCSS
$custom: #271e40;
$custom-light: #625a75;
$custom-dark: #000000;
JSON
{
  "hex": "#271e40",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 255.882,
    "s": 36.17,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26419,
    "c": 0.06227,
    "h": 293.9
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#271E40
secondary
#687445
accent
#CC5CAE
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050308
muted
#79787B

Preview Lab

Preview with #271E40

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

Preview Lab → · Contrast checker → · Palette generator →

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