#271574#271574

#271574 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.149 H 281.0°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#271574
RGBrgb(39, 21, 116)
HSLhsl(251, 69%, 27%)
HSVhsv(251, 82%, 45%)
CMYKcmyk(66.4%, 81.9%, 0%, 54.5%)
CIE-LABlab(16.64, 36.86, -50.83)
CIE-LCHlch(16.64, 62.79, 305.94°)
OKLaboklab(29.79% 0.0285 -0.1467)
OKLCHoklch(29.79% 0.149 281)
XYZxyz(4.2563, 2.2283, 16.7254)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271574 #627415
analogous
#153374 #271574 #571574
triadic
#271574 #742715 #157427
tetradic
#271574 #741533 #627415 #157457
square
#271574 #741533 #627415 #157457
split-complementary
#271574 #745715 #337415
monochromatic
#09051A #160C40 #271574 #381EA8 #4C2BD9

Accessibility & contrast

On white

14.52
#271574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271574
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271574#FFFFFF#000000##FFFFFF
##2715741.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271574;
/* rgb */ color: rgb(39, 21, 116);
/* oklch */ color: oklch(29.8% 0.149 281.0);
Tailwind
colors: {
  custom: {
    50: '#6d569d',
    500: '#271574',
    950: '#000000',
  },
}
SCSS
$custom: #271574;
$custom-light: #6d569d;
$custom-dark: #000000;
JSON
{
  "hex": "#271574",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 251.368,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29788,
    "c": 0.14943,
    "h": 281
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#271574
secondary
#95AA3B
accent
#EC3CCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271574

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

Preview Lab → · Contrast checker → · Palette generator →

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