#270642#270642

#270642 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.104 H 303.8°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#270642
RGBrgb(39, 6, 66)
HSLhsl(273, 83%, 14%)
HSVhsv(273, 91%, 26%)
CMYKcmyk(40.9%, 90.9%, 0%, 74.1%)
CIE-LABlab(8.61, 29.26, -30.31)
CIE-LCHlch(8.61, 42.13, 313.99°)
OKLaboklab(22.56% 0.0579 -0.0865)
OKLCHoklch(22.56% 0.104 303.8)
XYZxyz(1.8850, 0.9549, 5.2382)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270642 #214206
analogous
#090642 #270642 #42063F
triadic
#270642 #422706 #064227
tetradic
#270642 #420906 #214206 #063F42
square
#270642 #420906 #214206 #063F42
split-complementary
#270642 #3F4206 #064209
monochromatic
#11031C #11031C #270642 #480B7A #6910B2

Accessibility & contrast

On white

17.63
#270642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#270642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270642
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270642#FFFFFF#000000##FFFFFF
##2706421.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#211624
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270642;
/* rgb */ color: rgb(39, 6, 66);
/* oklch */ color: oklch(22.6% 0.104 303.8);
Tailwind
colors: {
  custom: {
    50: '#654a77',
    500: '#270642',
    950: '#000000',
  },
}
SCSS
$custom: #270642;
$custom-light: #654a77;
$custom-dark: #000000;
JSON
{
  "hex": "#270642",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 273,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22558,
    "c": 0.10405,
    "h": 303.8
  },
  "luminance": 0.00955
}

Semantic roles & 50–950 ramp

primary
#270642
secondary
#4D8222
accent
#FA2E8A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270642

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

Preview Lab → · Contrast checker → · Palette generator →

#270642 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva