#270340#270340

#270340 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.106 H 305.9°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#270340
RGBrgb(39, 3, 64)
HSLhsl(275, 91%, 13%)
HSVhsv(275, 95%, 25%)
CMYKcmyk(39.1%, 95.3%, 0%, 74.9%)
CIE-LABlab(7.83, 30.43, -30.16)
CIE-LCHlch(7.83, 42.85, 315.25°)
OKLaboklab(21.95% 0.0623 -0.086)
OKLCHoklch(21.95% 0.106 305.9)
XYZxyz(1.7945, 0.8666, 4.9222)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270340 #1C4003
analogous
#080340 #270340 #40033A
triadic
#270340 #402703 #034027
tetradic
#270340 #400803 #1C4003 #033A40
square
#270340 #400803 #1C4003 #033A40
split-complementary
#270340 #3A4003 #034008
monochromatic
#12011D #12011D #270340 #4B067A #6E08B5

Accessibility & contrast

On white

17.90
#270340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270340
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270340#FFFFFF#000000##FFFFFF
##2703401.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#221422
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270340;
/* rgb */ color: rgb(39, 3, 64);
/* oklch */ color: oklch(22.0% 0.106 305.9);
Tailwind
colors: {
  custom: {
    50: '#654875',
    500: '#270340',
    950: '#000000',
  },
}
SCSS
$custom: #270340;
$custom-light: #654875;
$custom-dark: #000000;
JSON
{
  "hex": "#270340",
  "rgb": {
    "r": 39,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 275.41,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21953,
    "c": 0.10619,
    "h": 305.9
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#270340
secondary
#46821D
accent
#FF2981
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270340

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

Preview Lab → · Contrast checker → · Palette generator →

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