#270C47#270C47

#270C47 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.102 H 299.2°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#270C47
RGBrgb(39, 12, 71)
HSLhsl(267, 71%, 16%)
HSVhsv(267, 83%, 28%)
CMYKcmyk(45.1%, 83.1%, 0%, 72.2%)
CIE-LABlab(10.18, 27.58, -31.27)
CIE-LCHlch(10.18, 41.70, 311.41°)
OKLaboklab(23.81% 0.0499 -0.0894)
OKLCHoklch(23.81% 0.102 299.2)
XYZxyz(2.1052, 1.1492, 6.0709)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C47 #2C470C
analogous
#0C0F47 #270C47 #450C47
triadic
#270C47 #47270C #0C4727
tetradic
#270C47 #470C0F #2C470C #0C4745
square
#270C47 #470C0F #2C470C #0C4745
split-complementary
#270C47 #47450C #0F470C
monochromatic
#0E041A #0E041A #270C47 #44157B #611EB0

Accessibility & contrast

On white

17.08
#270C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C47
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C47#FFFFFF#000000##FFFFFF
##270C471.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001B46
Tritanopia (blue-blind)
#1F1B29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270c47;
/* rgb */ color: rgb(39, 12, 71);
/* oklch */ color: oklch(23.8% 0.102 299.2);
Tailwind
colors: {
  custom: {
    50: '#654e7b',
    500: '#270c47',
    950: '#000000',
  },
}
SCSS
$custom: #270c47;
$custom-light: #654e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#270c47",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 267.458,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23807,
    "c": 0.10236,
    "h": 299.2
  },
  "luminance": 0.01149
}

Semantic roles & 50–950 ramp

primary
#270C47
secondary
#5B832C
accent
#EE3A9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #270C47

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

Preview Lab → · Contrast checker → · Palette generator →

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