#270C42#270C42

#270C42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.096 H 302.2°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#270C42
RGBrgb(39, 12, 66)
HSLhsl(270, 69%, 15%)
HSVhsv(270, 82%, 26%)
CMYKcmyk(40.9%, 81.8%, 0%, 74.1%)
CIE-LABlab(9.70, 26.13, -28.53)
CIE-LCHlch(9.70, 38.69, 312.49°)
OKLaboklab(23.32% 0.0512 -0.0813)
OKLCHoklch(23.32% 0.096 302.2)
XYZxyz(1.9513, 1.0876, 5.2603)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C42 #27420C
analogous
#0C0C42 #270C42 #420C42
triadic
#270C42 #42270C #0C4227
tetradic
#270C42 #420C0C #27420C #0C4242
square
#270C42 #420C0C #27420C #0C4242
split-complementary
#270C42 #42420C #0C420C
monochromatic
#0F051A #0F051A #270C42 #461576 #641FAA

Accessibility & contrast

On white

17.25
#270C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C42
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C42#FFFFFF#000000##FFFFFF
##270C421.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#211926
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270c42;
/* rgb */ color: rgb(39, 12, 66);
/* oklch */ color: oklch(23.3% 0.096 302.2);
Tailwind
colors: {
  custom: {
    50: '#644d77',
    500: '#270c42',
    950: '#000000',
  },
}
SCSS
$custom: #270c42;
$custom-light: #644d77;
$custom-dark: #000000;
JSON
{
  "hex": "#270c42",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 270,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23323,
    "c": 0.09607,
    "h": 302.2
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#270C42
secondary
#557E2C
accent
#EC3C94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270C42

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

Preview Lab → · Contrast checker → · Palette generator →

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