#270F3C#270F3C

#270F3C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.084 H 305.3°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#270F3C
RGBrgb(39, 15, 60)
HSLhsl(272, 60%, 15%)
HSVhsv(272, 75%, 24%)
CMYKcmyk(35%, 75%, 0%, 76.5%)
CIE-LABlab(9.79, 22.67, -24.11)
CIE-LCHlch(9.79, 33.09, 313.23°)
OKLaboklab(23.22% 0.0483 -0.0683)
OKLCHoklch(23.22% 0.084 305.3)
XYZxyz(1.8230, 1.0992, 4.3902)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F3C #243C0F
analogous
#110F3C #270F3C #3C0F3B
triadic
#270F3C #3C270F #0F3C27
tetradic
#270F3C #3C110F #243C0F #0F3B3C
square
#270F3C #3C110F #243C0F #0F3B3C
split-complementary
#270F3C #3B3C0F #0F3C11
monochromatic
#100618 #100618 #270F3C #471B6D #67279E

Accessibility & contrast

On white

17.22
#270F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F3C
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F3C#FFFFFF#000000##FFFFFF
##270F3C1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#041B3B
Tritanopia (blue-blind)
#231923
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270f3c;
/* rgb */ color: rgb(39, 15, 60);
/* oklch */ color: oklch(23.2% 0.084 305.3);
Tailwind
colors: {
  custom: {
    50: '#634f72',
    500: '#270f3c',
    950: '#000000',
  },
}
SCSS
$custom: #270f3c;
$custom-light: #634f72;
$custom-dark: #000000;
JSON
{
  "hex": "#270f3c",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 272,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23222,
    "c": 0.08372,
    "h": 305.3
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#270F3C
secondary
#517630
accent
#E3458F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050208
muted
#7A787B

Preview Lab

Preview with #270F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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