#270D47#270D47

#270D47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.101 H 298.9°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#270D47
RGBrgb(39, 13, 71)
HSLhsl(267, 69%, 16%)
HSVhsv(267, 82%, 28%)
CMYKcmyk(45.1%, 81.7%, 0%, 72.2%)
CIE-LABlab(10.36, 27.05, -30.97)
CIE-LCHlch(10.36, 41.12, 311.14°)
OKLaboklab(23.94% 0.0488 -0.0885)
OKLCHoklch(23.94% 0.101 298.9)
XYZxyz(2.1177, 1.1741, 6.0751)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D47 #2D470D
analogous
#0D1047 #270D47 #440D47
triadic
#270D47 #47270D #0D4727
tetradic
#270D47 #470D10 #2D470D #0D4744
square
#270D47 #470D10 #2D470D #0D4744
split-complementary
#270D47 #47440D #10470D
monochromatic
#0E051A #0E051A #270D47 #43167B #6020AE

Accessibility & contrast

On white

17.01
#270D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270D47
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D47#FFFFFF#000000##FFFFFF
##270D471.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270d47;
/* rgb */ color: rgb(39, 13, 71);
/* oklch */ color: oklch(23.9% 0.101 298.9);
Tailwind
colors: {
  custom: {
    50: '#654e7b',
    500: '#270d47',
    950: '#000000',
  },
}
SCSS
$custom: #270d47;
$custom-light: #654e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#270d47",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 266.897,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2394,
    "c": 0.10105,
    "h": 298.9
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#270D47
secondary
#5C822D
accent
#EC3C9D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270D47

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

Preview Lab → · Contrast checker → · Palette generator →

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