#270D40#270D40

#270D40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.092 H 303.2°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#270D40
RGBrgb(39, 13, 64)
HSLhsl(271, 66%, 15%)
HSVhsv(271, 80%, 25%)
CMYKcmyk(39.1%, 79.7%, 0%, 74.9%)
CIE-LABlab(9.71, 25.00, -27.09)
CIE-LCHlch(9.71, 36.86, 312.70°)
OKLaboklab(23.28% 0.0504 -0.0771)
OKLCHoklch(23.28% 0.092 303.2)
XYZxyz(1.9058, 1.0893, 4.9594)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D40 #26400D
analogous
#0D0D40 #270D40 #400D40
triadic
#270D40 #40270D #0D4027
tetradic
#270D40 #400D0D #26400D #0D4040
square
#270D40 #400D0D #26400D #0D4040
split-complementary
#270D40 #40400D #0D400D
monochromatic
#0F0519 #0F0519 #270D40 #461773 #6522A6

Accessibility & contrast

On white

17.24
#270D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270D40
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D40#FFFFFF#000000##FFFFFF
##270D401.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#221925
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270d40;
/* rgb */ color: rgb(39, 13, 64);
/* oklch */ color: oklch(23.3% 0.092 303.2);
Tailwind
colors: {
  custom: {
    50: '#644e75',
    500: '#270d40',
    950: '#000000',
  },
}
SCSS
$custom: #270d40;
$custom-light: #644e75;
$custom-dark: #000000;
JSON
{
  "hex": "#270d40",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 270.588,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23275,
    "c": 0.0921,
    "h": 303.2
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#270D40
secondary
#547C2D
accent
#E93F92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270D40

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

Preview Lab → · Contrast checker → · Palette generator →

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