#270C41#270C41

#270C41 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.095 H 302.8°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#270C41
RGBrgb(39, 12, 65)
HSLhsl(271, 69%, 15%)
HSVhsv(271, 82%, 25%)
CMYKcmyk(40%, 81.5%, 0%, 74.5%)
CIE-LABlab(9.61, 25.84, -27.97)
CIE-LCHlch(9.61, 38.08, 312.73°)
OKLaboklab(23.23% 0.0514 -0.0797)
OKLCHoklch(23.23% 0.095 302.8)
XYZxyz(1.9221, 1.0759, 5.1064)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C41 #26410C
analogous
#0C0C41 #270C41 #410C40
triadic
#270C41 #41270C #0C4127
tetradic
#270C41 #410C0C #26410C #0C4041
square
#270C41 #410C0C #26410C #0C4041
split-complementary
#270C41 #40410C #0C410C
monochromatic
#0F051A #0F051A #270C41 #461675 #651FA8

Accessibility & contrast

On white

17.28
#270C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C41
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C41#FFFFFF#000000##FFFFFF
##270C411.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001B40
Tritanopia (blue-blind)
#221925
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270c41;
/* rgb */ color: rgb(39, 12, 65);
/* oklch */ color: oklch(23.2% 0.095 302.8);
Tailwind
colors: {
  custom: {
    50: '#644d76',
    500: '#270c41',
    950: '#000000',
  },
}
SCSS
$custom: #270c41;
$custom-light: #644d76;
$custom-dark: #000000;
JSON
{
  "hex": "#270c41",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 270.566,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23229,
    "c": 0.09481,
    "h": 302.8
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#270C41
secondary
#547D2C
accent
#EC3C92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270C41

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

Preview Lab → · Contrast checker → · Palette generator →

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