#271365#271365

#271365 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.132 H 285.1°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#271365
RGBrgb(39, 19, 101)
HSLhsl(255, 68%, 24%)
HSVhsv(255, 81%, 40%)
CMYKcmyk(61.4%, 81.2%, 0%, 60.4%)
CIE-LABlab(14.60, 33.12, -44.39)
CIE-LCHlch(14.60, 55.39, 306.72°)
OKLaboklab(27.87% 0.0345 -0.1279)
OKLCHoklch(27.87% 0.132 285.1)
XYZxyz(3.4178, 1.8365, 12.4838)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271365 #516513
analogous
#132865 #271365 #501365
triadic
#271365 #652713 #136527
tetradic
#271365 #651328 #516513 #136550
square
#271365 #651328 #516513 #136550
split-complementary
#271365 #655013 #286513
monochromatic
#0A051A #130931 #271365 #3B1D99 #4F26CC

Accessibility & contrast

On white

15.36
#271365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271365 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271365
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271365#FFFFFF#000000##FFFFFF
##2713651.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#062B3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271365;
/* rgb */ color: rgb(39, 19, 101);
/* oklch */ color: oklch(27.9% 0.132 285.1);
Tailwind
colors: {
  custom: {
    50: '#6a5392',
    500: '#271365',
    950: '#000000',
  },
}
SCSS
$custom: #271365;
$custom-light: #6a5392;
$custom-dark: #000000;
JSON
{
  "hex": "#271365",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 254.634,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27865,
    "c": 0.13246,
    "h": 285.1
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#271365
secondary
#849D37
accent
#EB3DC1
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271365

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

Preview Lab → · Contrast checker → · Palette generator →

#271365 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva