#270C4B#270C4B

#270C4B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.107 H 297.0°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#270C4B
RGBrgb(39, 12, 75)
HSLhsl(266, 72%, 17%)
HSVhsv(266, 84%, 29%)
CMYKcmyk(48%, 84%, 0%, 70.6%)
CIE-LABlab(10.57, 28.76, -33.41)
CIE-LCHlch(10.57, 44.09, 310.72°)
OKLaboklab(24.21% 0.0487 -0.0957)
OKLCHoklch(24.21% 0.107 297)
XYZxyz(2.2378, 1.2022, 6.7694)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C4B #304B0C
analogous
#0C114B #270C4B #470C4B
triadic
#270C4B #4B270C #0C4B27
tetradic
#270C4B #4B0C11 #304B0C #0C4B47
square
#270C4B #4B0C11 #304B0C #0C4B47
split-complementary
#270C4B #4B470C #114B0C
monochromatic
#0E041A #0E041A #270C4B #421480 #5E1DB5

Accessibility & contrast

On white

16.93
#270C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#270C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C4B
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C4B#FFFFFF#000000##FFFFFF
##270C4B1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#1D1D2B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270c4b;
/* rgb */ color: rgb(39, 12, 75);
/* oklch */ color: oklch(24.2% 0.107 297.0);
Tailwind
colors: {
  custom: {
    50: '#664e7e',
    500: '#270c4b',
    950: '#000000',
  },
}
SCSS
$custom: #270c4b;
$custom-light: #664e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#270c4b",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 265.714,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24209,
    "c": 0.10735,
    "h": 297
  },
  "luminance": 0.01202
}

Semantic roles & 50–950 ramp

primary
#270C4B
secondary
#60872C
accent
#EF39A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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