#270540#270540

#270540 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.103 H 305.4°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#270540
RGBrgb(39, 5, 64)
HSLhsl(275, 86%, 14%)
HSVhsv(275, 92%, 25%)
CMYKcmyk(39.1%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.22, 29.28, -29.52)
CIE-LCHlch(8.22, 41.58, 314.76°)
OKLaboklab(22.22% 0.0598 -0.0842)
OKLCHoklch(22.22% 0.103 305.4)
XYZxyz(1.8162, 0.9101, 4.9295)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270540 #1E4005
analogous
#090540 #270540 #40053B
triadic
#270540 #402705 #054027
tetradic
#270540 #400905 #1E4005 #053B40
square
#270540 #400905 #1E4005 #053B40
split-complementary
#270540 #3B4005 #054009
monochromatic
#11021C #11021C #270540 #4A0979 #6C0EB2

Accessibility & contrast

On white

17.77
#270540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#270540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270540
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270540#FFFFFF#000000##FFFFFF
##2705401.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#221523
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270540;
/* rgb */ color: rgb(39, 5, 64);
/* oklch */ color: oklch(22.2% 0.103 305.4);
Tailwind
colors: {
  custom: {
    50: '#654a75',
    500: '#270540',
    950: '#000000',
  },
}
SCSS
$custom: #270540;
$custom-light: #654a75;
$custom-dark: #000000;
JSON
{
  "hex": "#270540",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 274.576,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22224,
    "c": 0.10323,
    "h": 305.4
  },
  "luminance": 0.0091
}

Semantic roles & 50–950 ramp

primary
#270540
secondary
#498120
accent
#FC2C84
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270540

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

Preview Lab → · Contrast checker → · Palette generator →

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