#270B3A#270B3A

#270B3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.087 H 308.1°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#270B3A
RGBrgb(39, 11, 58)
HSLhsl(276, 68%, 14%)
HSVhsv(276, 81%, 23%)
CMYKcmyk(32.8%, 81%, 0%, 77.3%)
CIE-LABlab(8.79, 24.41, -24.29)
CIE-LCHlch(8.79, 34.44, 315.14°)
OKLaboklab(22.45% 0.054 -0.0688)
OKLCHoklch(22.45% 0.087 308.1)
XYZxyz(1.7199, 0.9762, 4.1000)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B3A #1E3A0B
analogous
#0F0B3A #270B3A #3A0B35
triadic
#270B3A #3A270B #0B3A27
tetradic
#270B3A #3A0F0B #1E3A0B #0B353A
square
#270B3A #3A0F0B #1E3A0B #0B353A
split-complementary
#270B3A #353A0B #0B3A0F
monochromatic
#11051A #11051A #270B3A #4A156D #6C1FA1

Accessibility & contrast

On white

17.57
#270B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270B3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270B3A
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B3A#FFFFFF#000000##FFFFFF
##270B3A1.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#021939
Tritanopia (blue-blind)
#241621
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270b3a;
/* rgb */ color: rgb(39, 11, 58);
/* oklch */ color: oklch(22.5% 0.087 308.1);
Tailwind
colors: {
  custom: {
    50: '#634c70',
    500: '#270b3a',
    950: '#000000',
  },
}
SCSS
$custom: #270b3a;
$custom-light: #634c70;
$custom-dark: #000000;
JSON
{
  "hex": "#270b3a",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 275.745,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22452,
    "c": 0.08749,
    "h": 308.1
  },
  "luminance": 0.00976
}

Semantic roles & 50–950 ramp

primary
#270B3A
secondary
#49772A
accent
#EB3D83
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #270B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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