#270F40#270F40

#270F40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.089 H 302.5°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#270F40
RGBrgb(39, 15, 64)
HSLhsl(269, 62%, 15%)
HSVhsv(269, 77%, 25%)
CMYKcmyk(39.1%, 76.6%, 0%, 74.9%)
CIE-LABlab(10.13, 23.84, -26.41)
CIE-LCHlch(10.13, 35.58, 312.07°)
OKLaboklab(23.57% 0.0478 -0.0751)
OKLCHoklch(23.57% 0.089 302.5)
XYZxyz(1.9327, 1.1431, 4.9683)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F40 #28400F
analogous
#0F0F40 #270F40 #3F0F40
triadic
#270F40 #40270F #0F4027
tetradic
#270F40 #400F0F #28400F #0F403F
square
#270F40 #400F0F #28400F #0F403F
split-complementary
#270F40 #403F0F #0F400F
monochromatic
#0F0619 #0F0619 #270F40 #451B72 #6326A3

Accessibility & contrast

On white

17.09
#270F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F40
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F40#FFFFFF#000000##FFFFFF
##270F401.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#221A26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270f40;
/* rgb */ color: rgb(39, 15, 64);
/* oklch */ color: oklch(23.6% 0.089 302.5);
Tailwind
colors: {
  custom: {
    50: '#644f75',
    500: '#270f40',
    950: '#000000',
  },
}
SCSS
$custom: #270f40;
$custom-light: #644f75;
$custom-dark: #000000;
JSON
{
  "hex": "#270f40",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 269.388,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23573,
    "c": 0.08905,
    "h": 302.5
  },
  "luminance": 0.01143
}

Semantic roles & 50–950 ramp

primary
#270F40
secondary
#567A30
accent
#E54396
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #270F40

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

Preview Lab → · Contrast checker → · Palette generator →

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