#270F42#270F42

#270F42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.092 H 301.2°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#270F42
RGBrgb(39, 15, 66)
HSLhsl(268, 63%, 16%)
HSVhsv(268, 77%, 26%)
CMYKcmyk(40.9%, 77.3%, 0%, 74.1%)
CIE-LABlab(10.31, 24.43, -27.55)
CIE-LCHlch(10.31, 36.82, 311.57°)
OKLaboklab(23.75% 0.0475 -0.0784)
OKLCHoklch(23.75% 0.092 301.2)
XYZxyz(1.9907, 1.1663, 5.2734)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F42 #2A420F
analogous
#0F1042 #270F42 #400F42
triadic
#270F42 #42270F #0F4227
tetradic
#270F42 #420F10 #2A420F #0F4240
square
#270F42 #420F10 #2A420F #0F4240
split-complementary
#270F42 #42400F #10420F
monochromatic
#0F0619 #0F0619 #270F42 #441A74 #6226A6

Accessibility & contrast

On white

17.03
#270F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F42
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F42#FFFFFF#000000##FFFFFF
##270F421.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#211B27
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270f42;
/* rgb */ color: rgb(39, 15, 66);
/* oklch */ color: oklch(23.8% 0.092 301.2);
Tailwind
colors: {
  custom: {
    50: '#644f77',
    500: '#270f42',
    950: '#000000',
  },
}
SCSS
$custom: #270f42;
$custom-light: #644f77;
$custom-dark: #000000;
JSON
{
  "hex": "#270f42",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 268.235,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23754,
    "c": 0.09171,
    "h": 301.2
  },
  "luminance": 0.01166
}

Semantic roles & 50–950 ramp

primary
#270F42
secondary
#597C30
accent
#E64299
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #270F42

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

Preview Lab → · Contrast checker → · Palette generator →

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