#271368#271368

#271368 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.136 H 284.3°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#271368
RGBrgb(39, 19, 104)
HSLhsl(254, 69%, 24%)
HSVhsv(254, 82%, 41%)
CMYKcmyk(62.5%, 81.7%, 0%, 59.2%)
CIE-LABlab(14.93, 34.08, -45.83)
CIE-LCHlch(14.93, 57.11, 306.63°)
OKLaboklab(28.19% 0.0336 -0.1321)
OKLCHoklch(28.19% 0.136 284.3)
XYZxyz(3.5675, 1.8963, 13.2721)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271368 #546813
analogous
#132A68 #271368 #521368
triadic
#271368 #682713 #136827
tetradic
#271368 #68132A #546813 #136852
square
#271368 #68132A #546813 #136852
split-complementary
#271368 #685213 #2A6813
monochromatic
#0A051A #140A34 #271368 #3A1C9C #4E26CF

Accessibility & contrast

On white

15.22
#271368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271368
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271368#FFFFFF#000000##FFFFFF
##2713681.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#012C3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271368;
/* rgb */ color: rgb(39, 19, 104);
/* oklch */ color: oklch(28.2% 0.136 284.3);
Tailwind
colors: {
  custom: {
    50: '#6b5494',
    500: '#271368',
    950: '#000000',
  },
}
SCSS
$custom: #271368;
$custom-light: #6b5494;
$custom-dark: #000000;
JSON
{
  "hex": "#271368",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 254.118,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28194,
    "c": 0.13627,
    "h": 284.3
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#271368
secondary
#879F37
accent
#EC3CC3
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271368

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

Preview Lab → · Contrast checker → · Palette generator →

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