#271665#271665

#271665 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.129 H 284.4°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#271665
RGBrgb(39, 22, 101)
HSLhsl(253, 64%, 24%)
HSVhsv(253, 78%, 40%)
CMYKcmyk(61.4%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.19, 31.45, -43.43)
CIE-LCHlch(15.19, 53.62, 305.91°)
OKLaboklab(28.28% 0.0321 -0.1251)
OKLCHoklch(28.28% 0.129 284.4)
XYZxyz(3.4719, 1.9445, 12.5018)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271665 #546516
analogous
#162D65 #271665 #4F1665
triadic
#271665 #652716 #166527
tetradic
#271665 #65162D #546516 #16654F
square
#271665 #65162D #546516 #16654F
split-complementary
#271665 #654F16 #2D6516
monochromatic
#0A0519 #140B33 #271665 #3A2197 #4E2CCA

Accessibility & contrast

On white

15.12
#271665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271665
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271665#FFFFFF#000000##FFFFFF
##2716651.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#052C3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271665;
/* rgb */ color: rgb(39, 22, 101);
/* oklch */ color: oklch(28.3% 0.129 284.4);
Tailwind
colors: {
  custom: {
    50: '#6a5592',
    500: '#271665',
    950: '#000000',
  },
}
SCSS
$custom: #271665;
$custom-light: #6a5592;
$custom-dark: #000000;
JSON
{
  "hex": "#271665",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 252.911,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28279,
    "c": 0.12913,
    "h": 284.4
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#271665
secondary
#879C3B
accent
#E741C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271665

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

Preview Lab → · Contrast checker → · Palette generator →

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