#270C46#270C46

#270C46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.101 H 299.7°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#270C46
RGBrgb(39, 12, 70)
HSLhsl(268, 71%, 16%)
HSVhsv(268, 83%, 27%)
CMYKcmyk(44.3%, 82.9%, 0%, 72.5%)
CIE-LABlab(10.08, 27.29, -30.73)
CIE-LCHlch(10.08, 41.10, 311.61°)
OKLaboklab(23.71% 0.0502 -0.0878)
OKLCHoklch(23.71% 0.101 299.7)
XYZxyz(2.0734, 1.1365, 5.9033)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C46 #2B460C
analogous
#0C0E46 #270C46 #440C46
triadic
#270C46 #46270C #0C4627
tetradic
#270C46 #460C0E #2B460C #0C4644
square
#270C46 #460C0E #2B460C #0C4644
split-complementary
#270C46 #46440C #0E460C
monochromatic
#0F041A #0F041A #270C46 #44157A #611EAE

Accessibility & contrast

On white

17.11
#270C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C46
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C46#FFFFFF#000000##FFFFFF
##270C461.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#201B28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270c46;
/* rgb */ color: rgb(39, 12, 70);
/* oklch */ color: oklch(23.7% 0.101 299.7);
Tailwind
colors: {
  custom: {
    50: '#654e7a',
    500: '#270c46',
    950: '#000000',
  },
}
SCSS
$custom: #270c46;
$custom-light: #654e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270c46",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 267.931,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23709,
    "c": 0.10111,
    "h": 299.7
  },
  "luminance": 0.01136
}

Semantic roles & 50–950 ramp

primary
#270C46
secondary
#5A822C
accent
#ED3A9A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270C46

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

Preview Lab → · Contrast checker → · Palette generator →

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