#270835#270835

#270835 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.6% C 0.086 H 313.0°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#270835
RGBrgb(39, 8, 53)
HSLhsl(281, 74%, 12%)
HSVhsv(281, 85%, 21%)
CMYKcmyk(26.4%, 84.9%, 0%, 79.2%)
CIE-LABlab(7.79, 24.70, -22.28)
CIE-LCHlch(7.79, 33.26, 317.94°)
OKLaboklab(21.6% 0.0587 -0.0629)
OKLCHoklch(21.6% 0.086 313)
XYZxyz(1.5660, 0.8621, 3.4514)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270835 #163508
analogous
#110835 #270835 #35082D
triadic
#270835 #352708 #083527
tetradic
#270835 #351108 #163508 #082D35
square
#270835 #351108 #163508 #082D35
split-complementary
#270835 #2D3508 #083511
monochromatic
#14041B #14041B #270835 #4E106A #75189F

Accessibility & contrast

On white

17.91
#270835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270835
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270835#FFFFFF#000000##FFFFFF
##2708351.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#051834
Tritanopia (blue-blind)
#25121D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270835;
/* rgb */ color: rgb(39, 8, 53);
/* oklch */ color: oklch(21.6% 0.086 313.0);
Tailwind
colors: {
  custom: {
    50: '#634b6c',
    500: '#270835',
    950: '#000000',
  },
}
SCSS
$custom: #270835;
$custom-light: #634b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#270835",
  "rgb": {
    "r": 39,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 281.333,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.216,
    "c": 0.08609,
    "h": 313
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#270835
secondary
#3D7425
accent
#F03771
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050107
muted
#7A777A

Preview Lab

Preview with #270835

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

Preview Lab → · Contrast checker → · Palette generator →

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