#270A34#270A34

#270A34 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.082 H 313.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#270A34
RGBrgb(39, 10, 52)
HSLhsl(281, 68%, 12%)
HSVhsv(281, 81%, 20%)
CMYKcmyk(25%, 80.8%, 0%, 79.6%)
CIE-LABlab(8.10, 23.34, -21.05)
CIE-LCHlch(8.10, 31.43, 317.95°)
OKLaboklab(21.8% 0.0561 -0.0593)
OKLCHoklch(21.8% 0.082 313.4)
XYZxyz(1.5650, 0.8964, 3.3387)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A34 #17340A
analogous
#120A34 #270A34 #340A2C
triadic
#270A34 #34270A #0A3427
tetradic
#270A34 #34120A #17340A #0A2C34
square
#270A34 #34120A #17340A #0A2C34
split-complementary
#270A34 #2C340A #0A3412
monochromatic
#13051A #13051A #270A34 #4D1467 #741E9B

Accessibility & contrast

On white

17.81
#270A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#270A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A34
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A34#FFFFFF#000000##FFFFFF
##270A341.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#071833
Tritanopia (blue-blind)
#26131D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270a34;
/* rgb */ color: rgb(39, 10, 52);
/* oklch */ color: oklch(21.8% 0.082 313.4);
Tailwind
colors: {
  custom: {
    50: '#634c6c',
    500: '#270a34',
    950: '#000000',
  },
}
SCSS
$custom: #270a34;
$custom-light: #634c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#270a34",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 281.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21796,
    "c": 0.08166,
    "h": 313.4
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#270A34
secondary
#3F7128
accent
#EB3D73
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050107
muted
#7A777A

Preview Lab

Preview with #270A34

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

Preview Lab → · Contrast checker → · Palette generator →

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