#271773#271773

#271773 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.146 H 280.8°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#271773
RGBrgb(39, 23, 115)
HSLhsl(250, 67%, 27%)
HSVhsv(250, 80%, 45%)
CMYKcmyk(66.1%, 80%, 0%, 54.9%)
CIE-LABlab(16.90, 35.47, -49.76)
CIE-LCHlch(16.90, 61.11, 305.48°)
OKLaboklab(29.94% 0.0275 -0.1436)
OKLCHoklch(29.94% 0.146 280.8)
XYZxyz(4.2366, 2.2816, 16.4335)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271773 #637317
analogous
#173573 #271773 #551773
triadic
#271773 #732717 #177327
tetradic
#271773 #731735 #637317 #177355
square
#271773 #731735 #637317 #177355
split-complementary
#271773 #735517 #357317
monochromatic
#09051A #160D40 #271773 #3821A6 #4C2FD5

Accessibility & contrast

On white

14.42
#271773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271773
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271773#FFFFFF#000000##FFFFFF
##2717731.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271773;
/* rgb */ color: rgb(39, 23, 115);
/* oklch */ color: oklch(29.9% 0.146 280.8);
Tailwind
colors: {
  custom: {
    50: '#6d579c',
    500: '#271773',
    950: '#000000',
  },
}
SCSS
$custom: #271773;
$custom-light: #6d579c;
$custom-dark: #000000;
JSON
{
  "hex": "#271773",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 250.435,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29935,
    "c": 0.1462,
    "h": 280.8
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#271773
secondary
#96A93D
accent
#EA3ECC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271773

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

Preview Lab → · Contrast checker → · Palette generator →

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