#270D45#270D45

#270D45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.099 H 300.0°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#270D45
RGBrgb(39, 13, 69)
HSLhsl(268, 68%, 16%)
HSVhsv(268, 81%, 27%)
CMYKcmyk(43.5%, 81.2%, 0%, 72.9%)
CIE-LABlab(10.17, 26.46, -29.88)
CIE-LCHlch(10.17, 39.91, 311.53°)
OKLaboklab(23.75% 0.0493 -0.0853)
OKLCHoklch(23.75% 0.099 300)
XYZxyz(2.0545, 1.1488, 5.7426)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D45 #2B450D
analogous
#0D0F45 #270D45 #430D45
triadic
#270D45 #45270D #0D4527
tetradic
#270D45 #450D0F #2B450D #0D4543
square
#270D45 #450D0F #2B450D #0D4543
split-complementary
#270D45 #45430D #0F450D
monochromatic
#0F051A #0F051A #270D45 #441778 #6120AC

Accessibility & contrast

On white

17.08
#270D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#270D45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D45
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D45#FFFFFF#000000##FFFFFF
##270D451.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#201B28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270d45;
/* rgb */ color: rgb(39, 13, 69);
/* oklch */ color: oklch(23.7% 0.099 300.0);
Tailwind
colors: {
  custom: {
    50: '#654e79',
    500: '#270d45',
    950: '#000000',
  },
}
SCSS
$custom: #270d45;
$custom-light: #654e79;
$custom-dark: #000000;
JSON
{
  "hex": "#270d45",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 267.857,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23746,
    "c": 0.0985,
    "h": 300
  },
  "luminance": 0.01149
}

Semantic roles & 50–950 ramp

primary
#270D45
secondary
#5A802D
accent
#EB3D9A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #270D45

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

Preview Lab → · Contrast checker → · Palette generator →

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