#270240#270240

#270240 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.8% C 0.108 H 306.2°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#270240
RGBrgb(39, 2, 64)
HSLhsl(276, 94%, 13%)
HSVhsv(276, 97%, 25%)
CMYKcmyk(39.1%, 96.9%, 0%, 74.9%)
CIE-LABlab(7.63, 31.01, -30.48)
CIE-LCHlch(7.63, 43.48, 315.49°)
OKLaboklab(21.82% 0.0636 -0.087)
OKLCHoklch(21.82% 0.108 306.2)
XYZxyz(1.7836, 0.8449, 4.9186)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270240 #1B4002
analogous
#080240 #270240 #40023A
triadic
#270240 #402702 #024027
tetradic
#270240 #400802 #1B4002 #023A40
square
#270240 #400802 #1B4002 #023A40
split-complementary
#270240 #3A4002 #024008
monochromatic
#12011E #12011E #270240 #4B047B #6F06B7

Accessibility & contrast

On white

17.96
#270240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270240
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270240#FFFFFF#000000##FFFFFF
##2702401.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#221322
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270240;
/* rgb */ color: rgb(39, 2, 64);
/* oklch */ color: oklch(21.8% 0.108 306.2);
Tailwind
colors: {
  custom: {
    50: '#654875',
    500: '#270240',
    950: '#000000',
  },
}
SCSS
$custom: #270240;
$custom-light: #654875;
$custom-dark: #000000;
JSON
{
  "hex": "#270240",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 64
  },
  "hsl": {
    "h": 275.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21816,
    "c": 0.10771,
    "h": 306.2
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#270240
secondary
#45831B
accent
#FF297F
background
#F6F4F7
surface
#EBE6ED
border
#C6C2C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270240

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

Preview Lab → · Contrast checker → · Palette generator →

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