#270F5D#270F5D

#270F5D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.127 H 288.5°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#270F5D
RGBrgb(39, 15, 93)
HSLhsl(258, 72%, 21%)
HSVhsv(258, 84%, 36%)
CMYKcmyk(58.1%, 83.9%, 0%, 63.5%)
CIE-LABlab(13.00, 32.69, -41.70)
CIE-LCHlch(13.00, 52.99, 308.10°)
OKLaboklab(26.48% 0.0402 -0.12)
OKLCHoklch(26.48% 0.127 288.5)
XYZxyz(2.9827, 1.5631, 10.4984)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F5D #455D0F
analogous
#0F1E5D #270F5D #4E0F5D
triadic
#270F5D #5D270F #0F5D27
tetradic
#270F5D #5D0F1E #455D0F #0F5D4E
square
#270F5D #5D0F1E #455D0F #0F5D4E
split-complementary
#270F5D #5D4E0F #1E5D0F
monochromatic
#0B041A #110628 #270F5D #3D1792 #5320C6

Accessibility & contrast

On white

16.00
#270F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#270F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F5D
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F5D#FFFFFF#000000##FFFFFF
##270F5D1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#112636
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #270f5d;
/* rgb */ color: rgb(39, 15, 93);
/* oklch */ color: oklch(26.5% 0.127 288.5);
Tailwind
colors: {
  custom: {
    50: '#69518c',
    500: '#270f5d',
    950: '#000000',
  },
}
SCSS
$custom: #270f5d;
$custom-light: #69518c;
$custom-dark: #000000;
JSON
{
  "hex": "#270f5d",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 258.462,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26485,
    "c": 0.12652,
    "h": 288.5
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#270F5D
secondary
#779631
accent
#EF39B7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #270F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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