#270F37#270F37

#270F37 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.077 H 309.2°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#270F37
RGBrgb(39, 15, 55)
HSLhsl(276, 57%, 14%)
HSVhsv(276, 73%, 22%)
CMYKcmyk(29.1%, 72.7%, 0%, 78.4%)
CIE-LABlab(9.39, 21.24, -21.16)
CIE-LCHlch(9.39, 29.98, 315.11°)
OKLaboklab(22.81% 0.0487 -0.0597)
OKLCHoklch(22.81% 0.077 309.2)
XYZxyz(1.6970, 1.0488, 3.7267)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F37 #1F370F
analogous
#130F37 #270F37 #370F33
triadic
#270F37 #37270F #0F3727
tetradic
#270F37 #37130F #1F370F #0F3337
square
#270F37 #37130F #1F370F #0F3337
split-complementary
#270F37 #33370F #0F3713
monochromatic
#110718 #110718 #270F37 #491C67 #6B2997

Accessibility & contrast

On white

17.36
#270F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270F37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F37
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F37#FFFFFF#000000##FFFFFF
##270F371.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011938
Deuteranopia (green-blind)
#091B36
Tritanopia (blue-blind)
#251721
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270f37;
/* rgb */ color: rgb(39, 15, 55);
/* oklch */ color: oklch(22.8% 0.077 309.2);
Tailwind
colors: {
  custom: {
    50: '#634f6e',
    500: '#270f37',
    950: '#000000',
  },
}
SCSS
$custom: #270f37;
$custom-light: #634f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#270f37",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 276,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22805,
    "c": 0.07702,
    "h": 309.2
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#270F37
secondary
#4A7131
accent
#E04785
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #270F37

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

Preview Lab → · Contrast checker → · Palette generator →

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