#270646#270646

#270646 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.109 H 301.3°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#270646
RGBrgb(39, 6, 70)
HSLhsl(271, 84%, 15%)
HSVhsv(271, 91%, 27%)
CMYKcmyk(44.3%, 91.4%, 0%, 72.5%)
CIE-LABlab(9.02, 30.34, -32.46)
CIE-LCHlch(9.02, 44.43, 313.07°)
OKLaboklab(22.97% 0.0564 -0.0928)
OKLCHoklch(22.97% 0.109 301.3)
XYZxyz(2.0070, 1.0038, 5.8812)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270646 #254606
analogous
#070646 #270646 #460645
triadic
#270646 #462706 #064627
tetradic
#270646 #460706 #254606 #064546
square
#270646 #460706 #254606 #064546
split-complementary
#270646 #454606 #064607
monochromatic
#10021C #10021C #270646 #460B7E #6610B7

Accessibility & contrast

On white

17.49
#270646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270646
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270646#FFFFFF#000000##FFFFFF
##2706461.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#201827
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270646;
/* rgb */ color: rgb(39, 6, 70);
/* oklch */ color: oklch(23.0% 0.109 301.3);
Tailwind
colors: {
  custom: {
    50: '#654b7a',
    500: '#270646',
    950: '#000000',
  },
}
SCSS
$custom: #270646;
$custom-light: #654b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270646",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 70
  },
  "hsl": {
    "h": 270.938,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22971,
    "c": 0.10858,
    "h": 301.3
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#270646
secondary
#528522
accent
#FA2D91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270646

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

Preview Lab → · Contrast checker → · Palette generator →

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