#270638#270638

#270638 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.093 H 311.0°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#270638
RGBrgb(39, 6, 56)
HSLhsl(280, 81%, 12%)
HSVhsv(280, 89%, 22%)
CMYKcmyk(30.4%, 89.3%, 0%, 78%)
CIE-LABlab(7.65, 26.61, -24.69)
CIE-LCHlch(7.65, 36.30, 317.14°)
OKLaboklab(21.59% 0.0609 -0.07)
OKLCHoklch(21.59% 0.093 311)
XYZxyz(1.6155, 0.8471, 3.8190)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270638 #173806
analogous
#0E0638 #270638 #380630
triadic
#270638 #382706 #063827
tetradic
#270638 #380E06 #173806 #063038
square
#270638 #380E06 #173806 #063038
split-complementary
#270638 #303806 #06380E
monochromatic
#13031C #13031C #270638 #4D0C6F #7412A7

Accessibility & contrast

On white

17.96
#270638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270638
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270638#FFFFFF#000000##FFFFFF
##2706381.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#25121F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270638;
/* rgb */ color: rgb(39, 6, 56);
/* oklch */ color: oklch(21.6% 0.093 311.0);
Tailwind
colors: {
  custom: {
    50: '#644a6f',
    500: '#270638',
    950: '#000000',
  },
}
SCSS
$custom: #270638;
$custom-light: #644a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#270638",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 279.6,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21586,
    "c": 0.0928,
    "h": 311
  },
  "luminance": 0.00847
}

Semantic roles & 50–950 ramp

primary
#270638
secondary
#3F7821
accent
#F73174
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #270638

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

Preview Lab → · Contrast checker → · Palette generator →

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