#270C51#270C51

#270C51 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.115 H 294.0°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#270C51
RGBrgb(39, 12, 81)
HSLhsl(263, 74%, 18%)
HSVhsv(263, 85%, 32%)
CMYKcmyk(51.9%, 85.2%, 0%, 68.2%)
CIE-LABlab(11.19, 30.55, -36.54)
CIE-LCHlch(11.19, 47.63, 309.90°)
OKLaboklab(24.83% 0.0468 -0.1048)
OKLCHoklch(24.83% 0.115 294)
XYZxyz(2.4530, 1.2883, 7.9024)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C51 #36510C
analogous
#0C1351 #270C51 #490C51
triadic
#270C51 #51270C #0C5127
tetradic
#270C51 #510C13 #36510C #0C5149
square
#270C51 #510C13 #36510C #0C5149
split-complementary
#270C51 #51490C #13510C
monochromatic
#0D041B #0D041C #270C51 #411486 #5A1CBC

Accessibility & contrast

On white

16.70
#270C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#270C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C51
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C51#FFFFFF#000000##FFFFFF
##270C511.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001D50
Tritanopia (blue-blind)
#1A1F2E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270c51;
/* rgb */ color: rgb(39, 12, 81);
/* oklch */ color: oklch(24.8% 0.115 294.0);
Tailwind
colors: {
  custom: {
    50: '#674e83',
    500: '#270c51',
    950: '#000000',
  },
}
SCSS
$custom: #270c51;
$custom-light: #674e83;
$custom-dark: #000000;
JSON
{
  "hex": "#270c51",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 263.478,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24832,
    "c": 0.11479,
    "h": 294
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#270C51
secondary
#678C2C
accent
#F137A8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270C51

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

Preview Lab → · Contrast checker → · Palette generator →

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