#271868#271868

#271868 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.131 H 283.1°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#271868
RGBrgb(39, 24, 104)
HSLhsl(251, 63%, 25%)
HSVhsv(251, 77%, 41%)
CMYKcmyk(62.5%, 76.9%, 0%, 59.2%)
CIE-LABlab(15.92, 31.27, -44.21)
CIE-LCHlch(15.92, 54.15, 305.28°)
OKLaboklab(28.89% 0.0297 -0.1274)
OKLCHoklch(28.89% 0.131 283.1)
XYZxyz(3.6613, 2.0838, 13.3033)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271868 #596818
analogous
#183168 #271868 #4F1868
triadic
#271868 #682718 #186827
tetradic
#271868 #681831 #596818 #18684F
square
#271868 #681831 #596818 #18684F
split-complementary
#271868 #684F18 #316818
monochromatic
#090619 #140D36 #271868 #3A239A #4C2FCB

Accessibility & contrast

On white

14.82
#271868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271868
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271868#FFFFFF#000000##FFFFFF
##2718681.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271868;
/* rgb */ color: rgb(39, 24, 104);
/* oklch */ color: oklch(28.9% 0.131 283.1);
Tailwind
colors: {
  custom: {
    50: '#6a5794',
    500: '#271868',
    950: '#000000',
  },
}
SCSS
$custom: #271868;
$custom-light: #6a5794;
$custom-dark: #000000;
JSON
{
  "hex": "#271868",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 251.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28889,
    "c": 0.13078,
    "h": 283.1
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#271868
secondary
#8C9E3E
accent
#E642C7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271868

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

Preview Lab → · Contrast checker → · Palette generator →

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