#270C40#270C40

#270C40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.094 H 303.5°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#270C40
RGBrgb(39, 12, 64)
HSLhsl(271, 68%, 15%)
HSVhsv(271, 81%, 25%)
CMYKcmyk(39.1%, 81.2%, 0%, 74.9%)
CIE-LABlab(9.52, 25.55, -27.41)
CIE-LCHlch(9.52, 37.48, 312.99°)
OKLaboklab(23.14% 0.0516 -0.078)
OKLCHoklch(23.14% 0.094 303.5)
XYZxyz(1.8934, 1.0644, 4.9552)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C40 #25400C
analogous
#0D0C40 #270C40 #400C3F
triadic
#270C40 #40270C #0C4027
tetradic
#270C40 #400D0C #25400C #0C3F40
square
#270C40 #400D0C #25400C #0C3F40
split-complementary
#270C40 #3F400C #0C400D
monochromatic
#10051A #10051A #270C40 #461674 #661FA7

Accessibility & contrast

On white

17.32
#270C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C40
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C40#FFFFFF#000000##FFFFFF
##270C401.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#221825
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270c40;
/* rgb */ color: rgb(39, 12, 64);
/* oklch */ color: oklch(23.1% 0.094 303.5);
Tailwind
colors: {
  custom: {
    50: '#644d75',
    500: '#270c40',
    950: '#000000',
  },
}
SCSS
$custom: #270c40;
$custom-light: #644d75;
$custom-dark: #000000;
JSON
{
  "hex": "#270c40",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 271.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23135,
    "c": 0.09355,
    "h": 303.5
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#270C40
secondary
#527C2C
accent
#EB3D91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270C40

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

Preview Lab → · Contrast checker → · Palette generator →

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