#270C3A#270C3A

#270C3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.086 H 307.8°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#270C3A
RGBrgb(39, 12, 58)
HSLhsl(275, 66%, 14%)
HSVhsv(275, 79%, 23%)
CMYKcmyk(32.8%, 79.3%, 0%, 77.3%)
CIE-LABlab(8.99, 23.85, -23.97)
CIE-LCHlch(8.99, 33.82, 314.86°)
OKLaboklab(22.59% 0.0527 -0.0679)
OKLCHoklch(22.59% 0.086 307.8)
XYZxyz(1.7317, 0.9998, 4.1039)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C3A #1F3A0C
analogous
#100C3A #270C3A #3A0C36
triadic
#270C3A #3A270C #0C3A27
tetradic
#270C3A #3A100C #1F3A0C #0C363A
square
#270C3A #3A100C #1F3A0C #0C363A
split-complementary
#270C3A #363A0C #0C3A10
monochromatic
#110519 #110519 #270C3A #49166D #6B219F

Accessibility & contrast

On white

17.50
#270C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C3A
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C3A#FFFFFF#000000##FFFFFF
##270C3A1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#031A39
Tritanopia (blue-blind)
#241621
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270c3a;
/* rgb */ color: rgb(39, 12, 58);
/* oklch */ color: oklch(22.6% 0.086 307.8);
Tailwind
colors: {
  custom: {
    50: '#634d70',
    500: '#270c3a',
    950: '#000000',
  },
}
SCSS
$custom: #270c3a;
$custom-light: #634d70;
$custom-dark: #000000;
JSON
{
  "hex": "#270c3a",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 275.217,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22593,
    "c": 0.08595,
    "h": 307.8
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#270C3A
secondary
#4A762C
accent
#E93F85
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #270C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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