#270640#270640

#270640 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.102 H 305.1°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#270640
RGBrgb(39, 6, 64)
HSLhsl(274, 83%, 14%)
HSVhsv(274, 91%, 25%)
CMYKcmyk(39.1%, 90.6%, 0%, 74.9%)
CIE-LABlab(8.41, 28.72, -29.21)
CIE-LCHlch(8.41, 40.97, 314.52°)
OKLaboklab(22.36% 0.0586 -0.0833)
OKLCHoklch(22.36% 0.102 305.1)
XYZxyz(1.8270, 0.9318, 4.9331)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270640 #1F4006
analogous
#0A0640 #270640 #40063C
triadic
#270640 #402706 #064027
tetradic
#270640 #400A06 #1F4006 #063C40
square
#270640 #400A06 #1F4006 #063C40
split-complementary
#270640 #3C4006 #06400A
monochromatic
#11031C #11031C #270640 #490B78 #6B10B0

Accessibility & contrast

On white

17.70
#270640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270640
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270640#FFFFFF#000000##FFFFFF
##2706401.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#221523
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270640;
/* rgb */ color: rgb(39, 6, 64);
/* oklch */ color: oklch(22.4% 0.102 305.1);
Tailwind
colors: {
  custom: {
    50: '#654a75',
    500: '#270640',
    950: '#000000',
  },
}
SCSS
$custom: #270640;
$custom-light: #654a75;
$custom-dark: #000000;
JSON
{
  "hex": "#270640",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 274.138,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22356,
    "c": 0.10179,
    "h": 305.1
  },
  "luminance": 0.00932
}

Semantic roles & 50–950 ramp

primary
#270640
secondary
#4A8022
accent
#F92F86
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270640

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

Preview Lab → · Contrast checker → · Palette generator →

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