#270D4C#270D4C

#270D4C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.107 H 296.2°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#270D4C
RGBrgb(39, 13, 76)
HSLhsl(265, 71%, 17%)
HSVhsv(265, 83%, 30%)
CMYKcmyk(48.7%, 82.9%, 0%, 70.2%)
CIE-LABlab(10.86, 28.54, -33.65)
CIE-LCHlch(10.86, 44.12, 310.31°)
OKLaboklab(24.44% 0.0474 -0.0963)
OKLCHoklch(24.44% 0.107 296.2)
XYZxyz(2.2848, 1.2409, 6.9552)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D4C #324C0D
analogous
#0D124C #270D4C #470D4C
triadic
#270D4C #4C270D #0D4C27
tetradic
#270D4C #4C0D12 #324C0D #0D4C47
square
#270D4C #4C0D12 #324C0D #0D4C47
split-complementary
#270D4C #4C470D #124C0D
monochromatic
#0D041A #0D041A #270D4C #421680 #5D1FB5

Accessibility & contrast

On white

16.82
#270D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270D4C
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D4C#FFFFFF#000000##FFFFFF
##270D4C1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#1D1E2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270d4c;
/* rgb */ color: rgb(39, 13, 76);
/* oklch */ color: oklch(24.4% 0.107 296.2);
Tailwind
colors: {
  custom: {
    50: '#664f7f',
    500: '#270d4c',
    950: '#000000',
  },
}
SCSS
$custom: #270d4c;
$custom-light: #664f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#270d4c",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 264.762,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24438,
    "c": 0.10739,
    "h": 296.2
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#270D4C
secondary
#62872E
accent
#EE3AA4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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