#270C48#270C48

#270C48 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.104 H 298.6°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#270C48
RGBrgb(39, 12, 72)
HSLhsl(267, 71%, 16%)
HSVhsv(267, 83%, 28%)
CMYKcmyk(45.8%, 83.3%, 0%, 71.8%)
CIE-LABlab(10.27, 27.88, -31.81)
CIE-LCHlch(10.27, 42.30, 311.23°)
OKLaboklab(23.91% 0.0496 -0.091)
OKLCHoklch(23.91% 0.104 298.6)
XYZxyz(2.1376, 1.1621, 6.2413)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C48 #2D480C
analogous
#0C0F48 #270C48 #450C48
triadic
#270C48 #48270C #0C4827
tetradic
#270C48 #480C0F #2D480C #0C4845
square
#270C48 #480C0F #2D480C #0C4845
split-complementary
#270C48 #48450C #0F480C
monochromatic
#0E041A #0E041A #270C48 #43157C #601DB1

Accessibility & contrast

On white

17.04
#270C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#270C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C48
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C48#FFFFFF#000000##FFFFFF
##270C481.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#1F1C29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270c48;
/* rgb */ color: rgb(39, 12, 72);
/* oklch */ color: oklch(23.9% 0.104 298.6);
Tailwind
colors: {
  custom: {
    50: '#654e7c',
    500: '#270c48',
    950: '#000000',
  },
}
SCSS
$custom: #270c48;
$custom-light: #654e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270c48",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 267,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23907,
    "c": 0.10361,
    "h": 298.6
  },
  "luminance": 0.01162
}

Semantic roles & 50–950 ramp

primary
#270C48
secondary
#5C842C
accent
#EE3A9D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270C48

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

Preview Lab → · Contrast checker → · Palette generator →

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