#270A3A#270A3A

#270A3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.089 H 308.4°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#270A3A
RGBrgb(39, 10, 58)
HSLhsl(276, 71%, 13%)
HSVhsv(276, 83%, 23%)
CMYKcmyk(32.8%, 82.8%, 0%, 77.3%)
CIE-LABlab(8.60, 24.94, -24.60)
CIE-LCHlch(8.60, 35.03, 315.40°)
OKLaboklab(22.32% 0.0552 -0.0697)
OKLCHoklch(22.32% 0.089 308.4)
XYZxyz(1.7088, 0.9539, 4.0963)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A3A #1D3A0A
analogous
#0F0A3A #270A3A #3A0A35
triadic
#270A3A #3A270A #0A3A27
tetradic
#270A3A #3A0F0A #1D3A0A #0A353A
square
#270A3A #3A0F0A #1D3A0A #0A353A
split-complementary
#270A3A #353A0A #0A3A0F
monochromatic
#12051A #12051A #270A3A #4A136E #6D1CA2

Accessibility & contrast

On white

17.64
#270A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#270A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A3A
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A3A#FFFFFF#000000##FFFFFF
##270A3A1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270a3a;
/* rgb */ color: rgb(39, 10, 58);
/* oklch */ color: oklch(22.3% 0.089 308.4);
Tailwind
colors: {
  custom: {
    50: '#644c70',
    500: '#270a3a',
    950: '#000000',
  },
}
SCSS
$custom: #270a3a;
$custom-light: #644c70;
$custom-dark: #000000;
JSON
{
  "hex": "#270a3a",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 276.25,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22316,
    "c": 0.08897,
    "h": 308.4
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#270A3A
secondary
#487728
accent
#ED3A81
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #270A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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