#270C49#270C49

#270C49 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.105 H 298.1°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#270C49
RGBrgb(39, 12, 73)
HSLhsl(267, 72%, 17%)
HSVhsv(267, 84%, 29%)
CMYKcmyk(46.6%, 83.6%, 0%, 71.4%)
CIE-LABlab(10.37, 28.17, -32.35)
CIE-LCHlch(10.37, 42.90, 311.05°)
OKLaboklab(24.01% 0.0493 -0.0925)
OKLCHoklch(24.01% 0.105 298.1)
XYZxyz(2.1705, 1.1753, 6.4145)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C49 #2E490C
analogous
#0C1049 #270C49 #460C49
triadic
#270C49 #49270C #0C4927
tetradic
#270C49 #490C10 #2E490C #0C4946
square
#270C49 #490C10 #2E490C #0C4946
split-complementary
#270C49 #49460C #10490C
monochromatic
#0E041A #0E041A #270C49 #43157E #5F1DB2

Accessibility & contrast

On white

17.00
#270C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#270C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C49
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C49#FFFFFF#000000##FFFFFF
##270C491.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4B
Deuteranopia (green-blind)
#001C48
Tritanopia (blue-blind)
#1E1C2A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270c49;
/* rgb */ color: rgb(39, 12, 73);
/* oklch */ color: oklch(24.0% 0.105 298.1);
Tailwind
colors: {
  custom: {
    50: '#654e7c',
    500: '#270c49',
    950: '#000000',
  },
}
SCSS
$custom: #270c49;
$custom-light: #654e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270c49",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 266.557,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24007,
    "c": 0.10486,
    "h": 298.1
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#270C49
secondary
#5D852C
accent
#EE399E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270C49

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

Preview Lab → · Contrast checker → · Palette generator →

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