#270F3F#270F3F

#270F3F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.088 H 303.2°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#270F3F
RGBrgb(39, 15, 63)
HSLhsl(270, 62%, 15%)
HSVhsv(270, 76%, 25%)
CMYKcmyk(38.1%, 76.2%, 0%, 75.3%)
CIE-LABlab(10.05, 23.54, -25.84)
CIE-LCHlch(10.05, 34.96, 312.33°)
OKLaboklab(23.48% 0.048 -0.0734)
OKLCHoklch(23.48% 0.088 303.2)
XYZxyz(1.9045, 1.1319, 4.8198)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F3F #273F0F
analogous
#0F0F3F #270F3F #3F0F3F
triadic
#270F3F #3F270F #0F3F27
tetradic
#270F3F #3F0F0F #273F0F #0F3F3F
square
#270F3F #3F0F0F #273F0F #0F3F3F
split-complementary
#270F3F #3F3F0F #0F3F0F
monochromatic
#0F0619 #0F0619 #270F3F #461B70 #6427A2

Accessibility & contrast

On white

17.12
#270F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F3F
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F3F#FFFFFF#000000##FFFFFF
##270F3F1.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#011B3E
Tritanopia (blue-blind)
#221A25
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270f3f;
/* rgb */ color: rgb(39, 15, 63);
/* oklch */ color: oklch(23.5% 0.088 303.2);
Tailwind
colors: {
  custom: {
    50: '#644f74',
    500: '#270f3f',
    950: '#000000',
  },
}
SCSS
$custom: #270f3f;
$custom-light: #644f74;
$custom-dark: #000000;
JSON
{
  "hex": "#270f3f",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 270,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23484,
    "c": 0.08772,
    "h": 303.2
  },
  "luminance": 0.01132
}

Semantic roles & 50–950 ramp

primary
#270F3F
secondary
#557930
accent
#E54394
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #270F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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