#270C3F#270C3F

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

Color values

HEX#270C3F
RGBrgb(39, 12, 63)
HSLhsl(272, 68%, 15%)
HSVhsv(272, 81%, 25%)
CMYKcmyk(38.1%, 81%, 0%, 75.3%)
CIE-LABlab(9.43, 25.27, -26.85)
CIE-LCHlch(9.43, 36.86, 313.26°)
OKLaboklab(23.04% 0.0518 -0.0764)
OKLCHoklch(23.04% 0.092 304.2)
XYZxyz(1.8652, 1.0532, 4.8067)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C3F #243F0C
analogous
#0E0C3F #270C3F #3F0C3E
triadic
#270C3F #3F270C #0C3F27
tetradic
#270C3F #3F0E0C #243F0C #0C3E3F
square
#270C3F #3F0E0C #243F0C #0C3E3F
split-complementary
#270C3F #3E3F0C #0C3F0E
monochromatic
#10051A #10051A #270C3F #471672 #6720A6

Accessibility & contrast

On white

17.35
#270C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C3F
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C3F#FFFFFF#000000##FFFFFF
##270C3F1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#221824
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270c3f;
/* rgb */ color: rgb(39, 12, 63);
/* oklch */ color: oklch(23.0% 0.092 304.2);
Tailwind
colors: {
  custom: {
    50: '#644d74',
    500: '#270c3f',
    950: '#000000',
  },
}
SCSS
$custom: #270c3f;
$custom-light: #644d74;
$custom-dark: #000000;
JSON
{
  "hex": "#270c3f",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 271.765,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23042,
    "c": 0.09228,
    "h": 304.2
  },
  "luminance": 0.01053
}

Semantic roles & 50–950 ramp

primary
#270C3F
secondary
#517B2C
accent
#EB3D8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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