#271670#271670

#271670 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.143 H 281.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#271670
RGBrgb(39, 22, 112)
HSLhsl(251, 67%, 26%)
HSVhsv(251, 80%, 44%)
CMYKcmyk(65.2%, 80.4%, 0%, 56.1%)
CIE-LABlab(16.38, 35.04, -48.68)
CIE-LCHlch(16.38, 59.98, 305.75°)
OKLaboklab(29.47% 0.029 -0.1404)
OKLCHoklch(29.47% 0.143 281.7)
XYZxyz(4.0473, 2.1747, 15.5326)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271670 #5F7016
analogous
#163270 #271670 #541670
triadic
#271670 #702716 #167027
tetradic
#271670 #701632 #5F7016 #167054
square
#271670 #701632 #5F7016 #167054
split-complementary
#271670 #705416 #327016
monochromatic
#09051A #150C3D #271670 #3920A3 #4B2BD5

Accessibility & contrast

On white

14.63
#271670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271670
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271670#FFFFFF#000000##FFFFFF
##2716701.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271670;
/* rgb */ color: rgb(39, 22, 112);
/* oklch */ color: oklch(29.5% 0.143 281.7);
Tailwind
colors: {
  custom: {
    50: '#6c569a',
    500: '#271670',
    950: '#000000',
  },
}
SCSS
$custom: #271670;
$custom-light: #6c569a;
$custom-dark: #000000;
JSON
{
  "hex": "#271670",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 251.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2947,
    "c": 0.14339,
    "h": 281.7
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#271670
secondary
#92A63C
accent
#EA3ECA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271670

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

Preview Lab → · Contrast checker → · Palette generator →

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