#270F3E#270F3E

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

Color values

HEX#270F3E
RGBrgb(39, 15, 62)
HSLhsl(271, 61%, 15%)
HSVhsv(271, 76%, 24%)
CMYKcmyk(37.1%, 75.8%, 0%, 75.7%)
CIE-LABlab(9.96, 23.25, -25.27)
CIE-LCHlch(9.96, 34.34, 312.61°)
OKLaboklab(23.4% 0.0481 -0.0717)
OKLCHoklch(23.4% 0.086 303.8)
XYZxyz(1.8768, 1.1208, 4.6740)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F3E #263E0F
analogous
#0F0F3E #270F3E #3E0F3E
triadic
#270F3E #3E270F #0F3E27
tetradic
#270F3E #3E0F0F #263E0F #0F3E3E
square
#270F3E #3E0F0F #263E0F #0F3E3E
split-complementary
#270F3E #3E3E0F #0F3E0F
monochromatic
#0F0619 #0F0619 #270F3E #461B6F #6527A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##270F3E#FFFFFF#000000##FFFFFF
##270F3E1.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)
#001B3F
Deuteranopia (green-blind)
#021B3D
Tritanopia (blue-blind)
#231924
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270f3e;
/* rgb */ color: rgb(39, 15, 62);
/* oklch */ color: oklch(23.4% 0.086 303.8);
Tailwind
colors: {
  custom: {
    50: '#644f74',
    500: '#270f3e',
    950: '#000000',
  },
}
SCSS
$custom: #270f3e;
$custom-light: #644f74;
$custom-dark: #000000;
JSON
{
  "hex": "#270f3e",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 270.638,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23396,
    "c": 0.08639,
    "h": 303.8
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#270F3E
secondary
#547830
accent
#E44492
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #270F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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