#270D4B#270D4B

#270D4B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.106 H 296.7°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#270D4B
RGBrgb(39, 13, 75)
HSLhsl(265, 70%, 17%)
HSVhsv(265, 83%, 29%)
CMYKcmyk(48%, 82.7%, 0%, 70.6%)
CIE-LABlab(10.76, 28.25, -33.12)
CIE-LCHlch(10.76, 43.53, 310.46°)
OKLaboklab(24.34% 0.0477 -0.0948)
OKLCHoklch(24.34% 0.106 296.7)
XYZxyz(2.2503, 1.2271, 6.7735)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D4B #314B0D
analogous
#0D124B #270D4B #460D4B
triadic
#270D4B #4B270D #0D4B27
tetradic
#270D4B #4B0D12 #314B0D #0D4B46
square
#270D4B #4B0D12 #314B0D #0D4B46
split-complementary
#270D4B #4B460D #124B0D
monochromatic
#0E051A #0E051A #270D4B #42167F #5D1FB3

Accessibility & contrast

On white

16.86
#270D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#270D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D4B
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D4B#FFFFFF#000000##FFFFFF
##270D4B1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#1D1D2B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270d4b;
/* rgb */ color: rgb(39, 13, 75);
/* oklch */ color: oklch(24.3% 0.106 296.7);
Tailwind
colors: {
  custom: {
    50: '#664f7e',
    500: '#270d4b',
    950: '#000000',
  },
}
SCSS
$custom: #270d4b;
$custom-light: #664f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#270d4b",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 265.161,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24337,
    "c": 0.10612,
    "h": 296.7
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#270D4B
secondary
#61862E
accent
#ED3BA2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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