#270F4A#270F4A

#270F4A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.102 H 296.7°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#270F4A
RGBrgb(39, 15, 74)
HSLhsl(264, 66%, 17%)
HSVhsv(264, 80%, 29%)
CMYKcmyk(47.3%, 79.7%, 0%, 71%)
CIE-LABlab(11.04, 26.85, -31.95)
CIE-LCHlch(11.04, 41.73, 310.04°)
OKLaboklab(24.51% 0.0459 -0.0914)
OKLCHoklch(24.51% 0.102 296.7)
XYZxyz(2.2432, 1.2673, 6.6037)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4A #324A0F
analogous
#0F144A #270F4A #450F4A
triadic
#270F4A #4A270F #0F4A27
tetradic
#270F4A #4A0F14 #324A0F #0F4A45
square
#270F4A #4A0F14 #324A0F #0F4A45
split-complementary
#270F4A #4A450F #144A0F
monochromatic
#0D0519 #0D0519 #270F4A #42197D #5D24B0

Accessibility & contrast

On white

16.75
#270F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F4A
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4A#FFFFFF#000000##FFFFFF
##270F4A1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001D49
Tritanopia (blue-blind)
#1E1E2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270f4a;
/* rgb */ color: rgb(39, 15, 74);
/* oklch */ color: oklch(24.5% 0.102 296.7);
Tailwind
colors: {
  custom: {
    50: '#65507d',
    500: '#270f4a',
    950: '#000000',
  },
}
SCSS
$custom: #270f4a;
$custom-light: #65507d;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4a",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 264.407,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24511,
    "c": 0.10224,
    "h": 296.7
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#270F4A
secondary
#628430
accent
#E93FA4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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