#270B28#270B28

#270B28 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.066 H 326.2°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#270B28
RGBrgb(39, 11, 40)
HSLhsl(298, 57%, 10%)
HSVhsv(298, 73%, 16%)
CMYKcmyk(2.5%, 72.5%, 0%, 84.3%)
CIE-LABlab(7.44, 19.72, -13.18)
CIE-LCHlch(7.44, 23.72, 326.25°)
OKLaboklab(21.03% 0.0545 -0.0365)
OKLCHoklch(21.03% 0.066 326.2)
XYZxyz(1.3393, 0.8240, 2.0956)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B28 #0C280B
analogous
#180B28 #270B28 #280B1B
triadic
#270B28 #28270B #0B2827
tetradic
#270B28 #28180B #0C280B #0B1B28
square
#270B28 #28180B #0C280B #0B1B28
split-complementary
#270B28 #1B280B #0B2818
monochromatic
#170718 #170718 #270B28 #561858 #852588

Accessibility & contrast

On white

18.03
#270B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#270B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270B28
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B28#FFFFFF#000000##FFFFFF
##270B281.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071429
Deuteranopia (green-blind)
#111827
Tritanopia (blue-blind)
#280F18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270b28;
/* rgb */ color: rgb(39, 11, 40);
/* oklch */ color: oklch(21.0% 0.066 326.2);
Tailwind
colors: {
  custom: {
    50: '#624c62',
    500: '#270b28',
    950: '#000000',
  },
}
SCSS
$custom: #270b28;
$custom-light: #624c62;
$custom-dark: #000000;
JSON
{
  "hex": "#270b28",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 40
  },
  "hsl": {
    "h": 297.931,
    "s": 56.863,
    "l": 10
  },
  "oklch": {
    "l": 0.21032,
    "c": 0.06559,
    "h": 326.2
  },
  "luminance": 0.00824
}

Semantic roles & 50–950 ramp

primary
#270B28
secondary
#2D642B
accent
#E0484D
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #270B28

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

Preview Lab → · Contrast checker → · Palette generator →

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