#270D3F#270D3F

#270D3F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.091 H 303.8°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#270D3F
RGBrgb(39, 13, 63)
HSLhsl(271, 66%, 15%)
HSVhsv(271, 79%, 25%)
CMYKcmyk(38.1%, 79.4%, 0%, 75.3%)
CIE-LABlab(9.63, 24.71, -26.52)
CIE-LCHlch(9.63, 36.25, 312.97°)
OKLaboklab(23.18% 0.0506 -0.0754)
OKLCHoklch(23.18% 0.091 303.8)
XYZxyz(1.8776, 1.0781, 4.8108)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D3F #253F0D
analogous
#0E0D3F #270D3F #3F0D3E
triadic
#270D3F #3F270D #0D3F27
tetradic
#270D3F #3F0E0D #253F0D #0D3E3F
square
#270D3F #3F0E0D #253F0D #0D3E3F
split-complementary
#270D3F #3E3F0D #0D3F0E
monochromatic
#100519 #100519 #270D3F #461772 #6622A4

Accessibility & contrast

On white

17.28
#270D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D3F
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D3F#FFFFFF#000000##FFFFFF
##270D3F1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#221924
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270d3f;
/* rgb */ color: rgb(39, 13, 63);
/* oklch */ color: oklch(23.2% 0.091 303.8);
Tailwind
colors: {
  custom: {
    50: '#644e74',
    500: '#270d3f',
    950: '#000000',
  },
}
SCSS
$custom: #270d3f;
$custom-light: #644e74;
$custom-dark: #000000;
JSON
{
  "hex": "#270d3f",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 271.2,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23184,
    "c": 0.09081,
    "h": 303.8
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#270D3F
secondary
#527B2D
accent
#E93F91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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