#270C45#270C45

#270C45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.100 H 300.3°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#270C45
RGBrgb(39, 12, 69)
HSLhsl(268, 70%, 16%)
HSVhsv(268, 83%, 27%)
CMYKcmyk(43.5%, 82.6%, 0%, 72.9%)
CIE-LABlab(9.98, 27.00, -30.19)
CIE-LCHlch(9.98, 40.50, 311.81°)
OKLaboklab(23.61% 0.0504 -0.0862)
OKLCHoklch(23.61% 0.1 300.3)
XYZxyz(2.0421, 1.1239, 5.7384)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C45 #2A450C
analogous
#0C0D45 #270C45 #430C45
triadic
#270C45 #45270C #0C4527
tetradic
#270C45 #450C0D #2A450C #0C4543
square
#270C45 #450C0D #2A450C #0C4543
split-complementary
#270C45 #45430C #0D450C
monochromatic
#0F051A #0F051A #270C45 #441579 #621EAD

Accessibility & contrast

On white

17.15
#270C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C45
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C45#FFFFFF#000000##FFFFFF
##270C451.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#201A27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270c45;
/* rgb */ color: rgb(39, 12, 69);
/* oklch */ color: oklch(23.6% 0.100 300.3);
Tailwind
colors: {
  custom: {
    50: '#654e79',
    500: '#270c45',
    950: '#000000',
  },
}
SCSS
$custom: #270c45;
$custom-light: #654e79;
$custom-dark: #000000;
JSON
{
  "hex": "#270c45",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 268.421,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23611,
    "c": 0.09985,
    "h": 300.3
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#270C45
secondary
#59812C
accent
#ED3B99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270C45

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

Preview Lab → · Contrast checker → · Palette generator →

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