#270F3D#270F3D

#270F3D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.085 H 304.5°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#270F3D
RGBrgb(39, 15, 61)
HSLhsl(271, 61%, 15%)
HSVhsv(271, 75%, 24%)
CMYKcmyk(36.1%, 75.4%, 0%, 76.1%)
CIE-LABlab(9.88, 22.96, -24.69)
CIE-LCHlch(9.88, 33.72, 312.91°)
OKLaboklab(23.31% 0.0482 -0.07)
OKLCHoklch(23.31% 0.085 304.5)
XYZxyz(1.8496, 1.1099, 4.5308)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F3D #253D0F
analogous
#100F3D #270F3D #3D0F3C
triadic
#270F3D #3D270F #0F3D27
tetradic
#270F3D #3D100F #253D0F #0F3C3D
square
#270F3D #3D100F #253D0F #0F3C3D
split-complementary
#270F3D #3C3D0F #0F3D10
monochromatic
#100619 #100619 #270F3D #461B6E #66279F

Accessibility & contrast

On white

17.18
#270F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F3D
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F3D#FFFFFF#000000##FFFFFF
##270F3D1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3E
Deuteranopia (green-blind)
#031B3C
Tritanopia (blue-blind)
#231924
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270f3d;
/* rgb */ color: rgb(39, 15, 61);
/* oklch */ color: oklch(23.3% 0.085 304.5);
Tailwind
colors: {
  custom: {
    50: '#634f73',
    500: '#270f3d',
    950: '#000000',
  },
}
SCSS
$custom: #270f3d;
$custom-light: #634f73;
$custom-dark: #000000;
JSON
{
  "hex": "#270f3d",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 271.304,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23308,
    "c": 0.08505,
    "h": 304.5
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#270F3D
secondary
#527730
accent
#E44490
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #270F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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