#271968#271968

#271968 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 282.9°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#271968
RGBrgb(39, 25, 104)
HSLhsl(251, 61%, 25%)
HSVhsv(251, 76%, 41%)
CMYKcmyk(62.5%, 76%, 0%, 59.2%)
CIE-LABlab(16.13, 30.68, -43.86)
CIE-LCHlch(16.13, 53.52, 304.97°)
OKLaboklab(29.04% 0.0289 -0.1264)
OKLCHoklch(29.04% 0.13 282.9)
XYZxyz(3.6822, 2.1258, 13.3103)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271968 #5A6819
analogous
#193268 #271968 #4E1968
triadic
#271968 #682719 #196827
tetradic
#271968 #681932 #5A6819 #19684E
square
#271968 #681932 #5A6819 #19684E
split-complementary
#271968 #684E19 #326819
monochromatic
#090619 #140D37 #271968 #3A2599 #4C31CB

Accessibility & contrast

On white

14.73
#271968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271968
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271968#FFFFFF#000000##FFFFFF
##2719681.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271968;
/* rgb */ color: rgb(39, 25, 104);
/* oklch */ color: oklch(29.0% 0.130 282.9);
Tailwind
colors: {
  custom: {
    50: '#6a5794',
    500: '#271968',
    950: '#000000',
  },
}
SCSS
$custom: #271968;
$custom-light: #6a5794;
$custom-dark: #000000;
JSON
{
  "hex": "#271968",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 250.633,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.12961,
    "h": 282.9
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#271968
secondary
#8D9E3F
accent
#E443C8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271968

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

Preview Lab → · Contrast checker → · Palette generator →

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