#270C3D#270C3D

#270C3D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.090 H 305.6°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#270C3D
RGBrgb(39, 12, 61)
HSLhsl(273, 67%, 14%)
HSVhsv(273, 80%, 24%)
CMYKcmyk(36.1%, 80.3%, 0%, 76.1%)
CIE-LABlab(9.25, 24.70, -25.71)
CIE-LCHlch(9.25, 35.65, 313.85°)
OKLaboklab(22.86% 0.0522 -0.073)
OKLCHoklch(22.86% 0.09 305.6)
XYZxyz(1.8103, 1.0312, 4.5176)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C3D #223D0C
analogous
#0F0C3D #270C3D #3D0C3B
triadic
#270C3D #3D270C #0C3D27
tetradic
#270C3D #3D0F0C #223D0C #0C3B3D
square
#270C3D #3D0F0C #223D0C #0C3B3D
split-complementary
#270C3D #3B3D0C #0C3D0F
monochromatic
#10051A #10051A #270C3D #481670 #6820A3

Accessibility & contrast

On white

17.41
#270C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C3D
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C3D#FFFFFF#000000##FFFFFF
##270C3D1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#001A3C
Tritanopia (blue-blind)
#231723
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270c3d;
/* rgb */ color: rgb(39, 12, 61);
/* oklch */ color: oklch(22.9% 0.090 305.6);
Tailwind
colors: {
  custom: {
    50: '#644d73',
    500: '#270c3d',
    950: '#000000',
  },
}
SCSS
$custom: #270c3d;
$custom-light: #644d73;
$custom-dark: #000000;
JSON
{
  "hex": "#270c3d",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 273.061,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2286,
    "c": 0.08975,
    "h": 305.6
  },
  "luminance": 0.01031
}

Semantic roles & 50–950 ramp

primary
#270C3D
secondary
#4E792C
accent
#EA3E8B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #270C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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