#270D42#270D42

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

Color values

HEX#270D42
RGBrgb(39, 13, 66)
HSLhsl(269, 67%, 15%)
HSVhsv(269, 80%, 26%)
CMYKcmyk(40.9%, 80.3%, 0%, 74.1%)
CIE-LABlab(9.90, 25.58, -28.21)
CIE-LCHlch(9.90, 38.08, 312.20°)
OKLaboklab(23.46% 0.05 -0.0804)
OKLCHoklch(23.46% 0.095 301.9)
XYZxyz(1.9638, 1.1125, 5.2645)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D42 #28420D
analogous
#0D0D42 #270D42 #410D42
triadic
#270D42 #42270D #0D4227
tetradic
#270D42 #420D0D #28420D #0D4241
square
#270D42 #420D0D #28420D #0D4241
split-complementary
#270D42 #42410D #0D420D
monochromatic
#0F051A #0F051A #270D42 #451775 #6321A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##270D42#FFFFFF#000000##FFFFFF
##270D421.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)
#001B44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#211A26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270d42;
/* rgb */ color: rgb(39, 13, 66);
/* oklch */ color: oklch(23.5% 0.095 301.9);
Tailwind
colors: {
  custom: {
    50: '#644e77',
    500: '#270d42',
    950: '#000000',
  },
}
SCSS
$custom: #270d42;
$custom-light: #644e77;
$custom-dark: #000000;
JSON
{
  "hex": "#270d42",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 269.434,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23461,
    "c": 0.09467,
    "h": 301.9
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#270D42
secondary
#567E2D
accent
#EA3E96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #270D42

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

Preview Lab → · Contrast checker → · Palette generator →

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