#270F5C#270F5C

#270F5C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.4% C 0.125 H 288.9°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#270F5C
RGBrgb(39, 15, 92)
HSLhsl(259, 72%, 21%)
HSVhsv(259, 84%, 36%)
CMYKcmyk(57.6%, 83.7%, 0%, 63.9%)
CIE-LABlab(12.89, 32.39, -41.21)
CIE-LCHlch(12.89, 52.41, 308.16°)
OKLaboklab(26.38% 0.0405 -0.1185)
OKLCHoklch(26.38% 0.125 288.9)
XYZxyz(2.9387, 1.5455, 10.2666)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F5C #445C0F
analogous
#0F1D5C #270F5C #4D0F5C
triadic
#270F5C #5C270F #0F5C27
tetradic
#270F5C #5C0F1D #445C0F #0F5C4D
square
#270F5C #5C0F1D #445C0F #0F5C4D
split-complementary
#270F5C #5C4D0F #1D5C0F
monochromatic
#0B041A #110627 #270F5C #3D1891 #5420C5

Accessibility & contrast

On white

16.04
#270F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F5C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F5C#FFFFFF#000000##FFFFFF
##270F5C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#122535
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #270f5c;
/* rgb */ color: rgb(39, 15, 92);
/* oklch */ color: oklch(26.4% 0.125 288.9);
Tailwind
colors: {
  custom: {
    50: '#68518b',
    500: '#270f5c',
    950: '#000000',
  },
}
SCSS
$custom: #270f5c;
$custom-light: #68518b;
$custom-dark: #000000;
JSON
{
  "hex": "#270f5c",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 258.701,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26376,
    "c": 0.12527,
    "h": 288.9
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#270F5C
secondary
#769531
accent
#EF39B6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #270F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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