#270C44#270C44

#270C44 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.099 H 300.9°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#270C44
RGBrgb(39, 12, 68)
HSLhsl(269, 70%, 16%)
HSVhsv(269, 82%, 27%)
CMYKcmyk(42.6%, 82.4%, 0%, 73.3%)
CIE-LABlab(9.89, 26.71, -29.64)
CIE-LCHlch(9.89, 39.90, 312.03°)
OKLaboklab(23.51% 0.0507 -0.0846)
OKLCHoklch(23.51% 0.099 300.9)
XYZxyz(2.0113, 1.1116, 5.5763)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C44 #29440C
analogous
#0C0D44 #270C44 #430C44
triadic
#270C44 #44270C #0C4427
tetradic
#270C44 #440C0D #29440C #0C4443
square
#270C44 #440C0D #29440C #0C4443
split-complementary
#270C44 #44430C #0D440C
monochromatic
#0F051A #0F051A #270C44 #451578 #631EAC

Accessibility & contrast

On white

17.18
#270C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C44
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C44#FFFFFF#000000##FFFFFF
##270C441.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001B43
Tritanopia (blue-blind)
#211A27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270c44;
/* rgb */ color: rgb(39, 12, 68);
/* oklch */ color: oklch(23.5% 0.099 300.9);
Tailwind
colors: {
  custom: {
    50: '#654e78',
    500: '#270c44',
    950: '#000000',
  },
}
SCSS
$custom: #270c44;
$custom-light: #654e78;
$custom-dark: #000000;
JSON
{
  "hex": "#270c44",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 268.929,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23514,
    "c": 0.09859,
    "h": 300.9
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#270C44
secondary
#57802C
accent
#ED3B97
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270C44

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

Preview Lab → · Contrast checker → · Palette generator →

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