#271E4B#271E4B

#271E4B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.2% C 0.080 H 289.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#271E4B
RGBrgb(39, 30, 75)
HSLhsl(252, 43%, 21%)
HSVhsv(252, 60%, 29%)
CMYKcmyk(48%, 60%, 0%, 70.6%)
CIE-LABlab(14.78, 17.42, -26.60)
CIE-LCHlch(14.78, 31.79, 303.23°)
OKLaboklab(27.25% 0.0263 -0.0757)
OKLCHoklch(27.25% 0.08 289.2)
XYZxyz(2.5706, 1.8678, 6.8803)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E4B #424B1E
analogous
#1E2B4B #271E4B #3D1E4B
triadic
#271E4B #4B271E #1E4B27
tetradic
#271E4B #4B1E2B #424B1E #1E4B3D
square
#271E4B #4B1E2B #424B1E #1E4B3D
split-complementary
#271E4B #4B3D1E #2B4B1E
monochromatic
#0B0916 #100D1F #271E4B #3E2F77 #5441A2

Accessibility & contrast

On white

15.29
#271E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E4B
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E4B#FFFFFF#000000##FFFFFF
##271E4B1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08264D
Deuteranopia (green-blind)
#09244A
Tritanopia (blue-blind)
#1C2831
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271e4b;
/* rgb */ color: rgb(39, 30, 75);
/* oklch */ color: oklch(27.2% 0.080 289.2);
Tailwind
colors: {
  custom: {
    50: '#645a7e',
    500: '#271e4b',
    950: '#000000',
  },
}
SCSS
$custom: #271e4b;
$custom-light: #645a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#271e4b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 75
  },
  "hsl": {
    "h": 252,
    "s": 42.857,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27249,
    "c": 0.0801,
    "h": 289.2
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#271E4B
secondary
#748045
accent
#D355BA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #271E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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