#270B4A#270B4A

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

Color values

HEX#270B4A
RGBrgb(39, 11, 74)
HSLhsl(267, 74%, 17%)
HSVhsv(267, 85%, 29%)
CMYKcmyk(47.3%, 85.1%, 0%, 71%)
CIE-LABlab(10.30, 28.97, -33.17)
CIE-LCHlch(10.30, 44.04, 311.14°)
OKLaboklab(23.98% 0.05 -0.0949)
OKLCHoklch(23.98% 0.107 297.8)
XYZxyz(2.1921, 1.1651, 6.5866)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B4A #2E4A0B
analogous
#0B0E4A #270B4A #470B4A
triadic
#270B4A #4A270B #0B4A27
tetradic
#270B4A #4A0B0E #2E4A0B #0B4A47
square
#270B4A #4A0B0E #2E4A0B #0B4A47
split-complementary
#270B4A #4A470B #0E4A0B
monochromatic
#0E041B #0E041B #270B4A #43137F #5F1BB5

Accessibility & contrast

On white

17.03
#270B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B4A
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B4A#FFFFFF#000000##FFFFFF
##270B4A1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#1E1C2A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270b4a;
/* rgb */ color: rgb(39, 11, 74);
/* oklch */ color: oklch(24.0% 0.107 297.8);
Tailwind
colors: {
  custom: {
    50: '#664d7d',
    500: '#270b4a',
    950: '#000000',
  },
}
SCSS
$custom: #270b4a;
$custom-light: #664d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#270b4a",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 266.667,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23984,
    "c": 0.10731,
    "h": 297.8
  },
  "luminance": 0.01165
}

Semantic roles & 50–950 ramp

primary
#270B4A
secondary
#5D862B
accent
#F1379E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #270B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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