#270339#270339

#270339 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.099 H 311.0°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#270339
RGBrgb(39, 3, 57)
HSLhsl(280, 90%, 12%)
HSVhsv(280, 95%, 22%)
CMYKcmyk(31.6%, 94.7%, 0%, 77.6%)
CIE-LABlab(7.15, 28.55, -26.22)
CIE-LCHlch(7.15, 38.76, 317.43°)
OKLaboklab(21.25% 0.0649 -0.0746)
OKLCHoklch(21.25% 0.099 311)
XYZxyz(1.6076, 0.7919, 3.9383)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270339 #153903
analogous
#0C0339 #270339 #390330
triadic
#270339 #392703 #033927
tetradic
#270339 #390C03 #153903 #033039
square
#270339 #390C03 #153903 #033039
split-complementary
#270339 #303903 #03390C
monochromatic
#14021D #14021D #270339 #4F0673 #7709AD

Accessibility & contrast

On white

18.13
#270339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#270339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270339
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270339#FFFFFF#000000##FFFFFF
##2703391.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#25101E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270339;
/* rgb */ color: rgb(39, 3, 57);
/* oklch */ color: oklch(21.2% 0.099 311.0);
Tailwind
colors: {
  custom: {
    50: '#644870',
    500: '#270339',
    950: '#000000',
  },
}
SCSS
$custom: #270339;
$custom-light: #644870;
$custom-dark: #000000;
JSON
{
  "hex": "#270339",
  "rgb": {
    "r": 39,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 280,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21248,
    "c": 0.09888,
    "h": 311
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#270339
secondary
#3C7C1C
accent
#FF2970
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #270339

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

Preview Lab → · Contrast checker → · Palette generator →

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