#271672#271672

#271672 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.146 H 281.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#271672
RGBrgb(39, 22, 114)
HSLhsl(251, 68%, 27%)
HSVhsv(251, 81%, 45%)
CMYKcmyk(65.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(16.60, 35.69, -49.61)
CIE-LCHlch(16.60, 61.11, 305.73°)
OKLaboklab(29.69% 0.0285 -0.1431)
OKLCHoklch(29.69% 0.146 281.2)
XYZxyz(4.1599, 2.2197, 16.1256)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271672 #617216
analogous
#163372 #271672 #551672
triadic
#271672 #722716 #167227
tetradic
#271672 #721633 #617216 #167255
square
#271672 #721633 #617216 #167255
split-complementary
#271672 #725516 #337216
monochromatic
#09051A #150C3F #271672 #3920A5 #4C2CD6

Accessibility & contrast

On white

14.54
#271672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271672
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271672#FFFFFF#000000##FFFFFF
##2716721.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271672;
/* rgb */ color: rgb(39, 22, 114);
/* oklch */ color: oklch(29.7% 0.146 281.2);
Tailwind
colors: {
  custom: {
    50: '#6c569c',
    500: '#271672',
    950: '#000000',
  },
}
SCSS
$custom: #271672;
$custom-light: #6c569c;
$custom-dark: #000000;
JSON
{
  "hex": "#271672",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 251.087,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29691,
    "c": 0.14594,
    "h": 281.2
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#271672
secondary
#94A83C
accent
#EB3DCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271672

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

Preview Lab → · Contrast checker → · Palette generator →

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