#270B4C#270B4C

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

Color values

HEX#270B4C
RGBrgb(39, 11, 76)
HSLhsl(266, 75%, 17%)
HSVhsv(266, 86%, 30%)
CMYKcmyk(48.7%, 85.5%, 0%, 70.2%)
CIE-LABlab(10.50, 29.56, -34.23)
CIE-LCHlch(10.50, 45.22, 310.82°)
OKLaboklab(24.19% 0.0494 -0.098)
OKLCHoklch(24.19% 0.11 296.7)
XYZxyz(2.2605, 1.1924, 6.9471)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B4C #304C0B
analogous
#0B104C #270B4C #480B4C
triadic
#270B4C #4C270B #0B4C27
tetradic
#270B4C #4C0B10 #304C0B #0B4C48
square
#270B4C #4C0B10 #304C0B #0B4C48
split-complementary
#270B4C #4C480B #104C0B
monochromatic
#0E041B #0E041B #270B4C #421381 #5E1AB7

Accessibility & contrast

On white

16.96
#270B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B4C
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B4C#FFFFFF#000000##FFFFFF
##270B4C1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#1D1D2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270b4c;
/* rgb */ color: rgb(39, 11, 76);
/* oklch */ color: oklch(24.2% 0.110 296.7);
Tailwind
colors: {
  custom: {
    50: '#664e7f',
    500: '#270b4c',
    950: '#000000',
  },
}
SCSS
$custom: #270b4c;
$custom-light: #664e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#270b4c",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 265.846,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24189,
    "c": 0.10976,
    "h": 296.7
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#270B4C
secondary
#60882B
accent
#F136A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #270B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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