#271867#271867

#271867 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.129 H 283.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#271867
RGBrgb(39, 24, 103)
HSLhsl(251, 62%, 25%)
HSVhsv(251, 77%, 40%)
CMYKcmyk(62.1%, 76.7%, 0%, 59.6%)
CIE-LABlab(15.82, 30.94, -43.72)
CIE-LCHlch(15.82, 53.56, 305.29°)
OKLaboklab(28.78% 0.0299 -0.1259)
OKLCHoklch(28.78% 0.129 283.4)
XYZxyz(3.6108, 2.0636, 13.0374)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271867 #586718
analogous
#183167 #271867 #4E1867
triadic
#271867 #672718 #186727
tetradic
#271867 #671831 #586718 #18674E
square
#271867 #671831 #586718 #18674E
split-complementary
#271867 #674E18 #316718
monochromatic
#090619 #140C35 #271867 #3A2499 #4D2FCA

Accessibility & contrast

On white

14.86
#271867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271867
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271867#FFFFFF#000000##FFFFFF
##2718671.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#022E3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271867;
/* rgb */ color: rgb(39, 24, 103);
/* oklch */ color: oklch(28.8% 0.129 283.4);
Tailwind
colors: {
  custom: {
    50: '#6a5793',
    500: '#271867',
    950: '#000000',
  },
}
SCSS
$custom: #271867;
$custom-light: #6a5793;
$custom-dark: #000000;
JSON
{
  "hex": "#271867",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 251.392,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28784,
    "c": 0.12946,
    "h": 283.4
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#271867
secondary
#8B9D3E
accent
#E543C6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271867

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

Preview Lab → · Contrast checker → · Palette generator →

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