#270F36#270F36

#270F36 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.076 H 310.1°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#270F36
RGBrgb(39, 15, 54)
HSLhsl(277, 57%, 14%)
HSVhsv(277, 72%, 21%)
CMYKcmyk(27.8%, 72.2%, 0%, 78.8%)
CIE-LABlab(9.32, 20.95, -20.55)
CIE-LCHlch(9.32, 29.35, 315.55°)
OKLaboklab(22.73% 0.0487 -0.0579)
OKLCHoklch(22.73% 0.076 310.1)
XYZxyz(1.6733, 1.0394, 3.6018)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F36 #1E360F
analogous
#130F36 #270F36 #360F31
triadic
#270F36 #36270F #0F3627
tetradic
#270F36 #36130F #1E360F #0F3136
square
#270F36 #36130F #1E360F #0F3136
split-complementary
#270F36 #31360F #0F3613
monochromatic
#110718 #110718 #270F36 #4A1C66 #6C2A96

Accessibility & contrast

On white

17.39
#270F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F36
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F36#FFFFFF#000000##FFFFFF
##270F361.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021937
Deuteranopia (green-blind)
#0A1B35
Tritanopia (blue-blind)
#251720
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270f36;
/* rgb */ color: rgb(39, 15, 54);
/* oklch */ color: oklch(22.7% 0.076 310.1);
Tailwind
colors: {
  custom: {
    50: '#634f6d',
    500: '#270f36',
    950: '#000000',
  },
}
SCSS
$custom: #270f36;
$custom-light: #634f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#270f36",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 276.923,
    "s": 56.522,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22725,
    "c": 0.07568,
    "h": 310.1
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#270F36
secondary
#497031
accent
#E04882
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050207
muted
#7A787A

Preview Lab

Preview with #270F36

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

Preview Lab → · Contrast checker → · Palette generator →

#270F36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva