#270C4F#270C4F

#270C4F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.112 H 295.0°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#270C4F
RGBrgb(39, 12, 79)
HSLhsl(264, 74%, 18%)
HSVhsv(264, 85%, 31%)
CMYKcmyk(50.6%, 84.8%, 0%, 69%)
CIE-LABlab(10.98, 29.95, -35.51)
CIE-LCHlch(10.98, 46.45, 310.15°)
OKLaboklab(24.62% 0.0475 -0.1018)
OKLCHoklch(24.62% 0.112 295)
XYZxyz(2.3791, 1.2587, 7.5132)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C4F #344F0C
analogous
#0C134F #270C4F #480C4F
triadic
#270C4F #4F270C #0C4F27
tetradic
#270C4F #4F0C13 #344F0C #0C4F48
square
#270C4F #4F0C13 #344F0C #0C4F48
split-complementary
#270C4F #4F480C #134F0C
monochromatic
#0D041B #0D041B #270C4F #411484 #5B1CB9

Accessibility & contrast

On white

16.78
#270C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#270C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C4F
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C4F#FFFFFF#000000##FFFFFF
##270C4F1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#1B1F2D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270c4f;
/* rgb */ color: rgb(39, 12, 79);
/* oklch */ color: oklch(24.6% 0.112 295.0);
Tailwind
colors: {
  custom: {
    50: '#664e81',
    500: '#270c4f',
    950: '#000000',
  },
}
SCSS
$custom: #270c4f;
$custom-light: #664e81;
$custom-dark: #000000;
JSON
{
  "hex": "#270c4f",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 264.179,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24621,
    "c": 0.11232,
    "h": 295
  },
  "luminance": 0.01259
}

Semantic roles & 50–950 ramp

primary
#270C4F
secondary
#658B2C
accent
#F038A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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