#270F39#270F39

#270F39 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.080 H 307.6°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#270F39
RGBrgb(39, 15, 57)
HSLhsl(274, 58%, 14%)
HSVhsv(274, 74%, 22%)
CMYKcmyk(31.6%, 73.7%, 0%, 77.6%)
CIE-LABlab(9.55, 21.80, -22.35)
CIE-LCHlch(9.55, 31.22, 314.29°)
OKLaboklab(22.97% 0.0486 -0.0632)
OKLCHoklch(22.97% 0.08 307.6)
XYZxyz(1.7459, 1.0684, 3.9844)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F39 #21390F
analogous
#120F39 #270F39 #390F36
triadic
#270F39 #39270F #0F3927
tetradic
#270F39 #39120F #21390F #0F3639
square
#270F39 #39120F #21390F #0F3639
split-complementary
#270F39 #36390F #0F3912
monochromatic
#110618 #110618 #270F39 #481C69 #69299A

Accessibility & contrast

On white

17.30
#270F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F39
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F39#FFFFFF#000000##FFFFFF
##270F391.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#071B38
Tritanopia (blue-blind)
#241822
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270f39;
/* rgb */ color: rgb(39, 15, 57);
/* oklch */ color: oklch(23.0% 0.080 307.6);
Tailwind
colors: {
  custom: {
    50: '#634f70',
    500: '#270f39',
    950: '#000000',
  },
}
SCSS
$custom: #270f39;
$custom-light: #634f70;
$custom-dark: #000000;
JSON
{
  "hex": "#270f39",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 274.286,
    "s": 58.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22969,
    "c": 0.0797,
    "h": 307.6
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#270F39
secondary
#4D7330
accent
#E24689
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #270F39

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

Preview Lab → · Contrast checker → · Palette generator →

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