#270F41#270F41

#270F41 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.090 H 301.8°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#270F41
RGBrgb(39, 15, 65)
HSLhsl(269, 63%, 16%)
HSVhsv(269, 77%, 25%)
CMYKcmyk(40%, 76.9%, 0%, 74.5%)
CIE-LABlab(10.22, 24.14, -26.98)
CIE-LCHlch(10.22, 36.20, 311.81°)
OKLaboklab(23.66% 0.0477 -0.0768)
OKLCHoklch(23.66% 0.09 301.8)
XYZxyz(1.9614, 1.1546, 5.1195)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F41 #29410F
analogous
#0F1041 #270F41 #400F41
triadic
#270F41 #41270F #0F4127
tetradic
#270F41 #410F10 #29410F #0F4140
square
#270F41 #410F10 #29410F #0F4140
split-complementary
#270F41 #41400F #10410F
monochromatic
#0F0619 #0F0619 #270F41 #451A73 #6326A4

Accessibility & contrast

On white

17.06
#270F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F41
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F41#FFFFFF#000000##FFFFFF
##270F411.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#221B26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270f41;
/* rgb */ color: rgb(39, 15, 65);
/* oklch */ color: oklch(23.7% 0.090 301.8);
Tailwind
colors: {
  custom: {
    50: '#644f76',
    500: '#270f41',
    950: '#000000',
  },
}
SCSS
$custom: #270f41;
$custom-light: #644f76;
$custom-dark: #000000;
JSON
{
  "hex": "#270f41",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 268.8,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23663,
    "c": 0.09038,
    "h": 301.8
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#270F41
secondary
#577B30
accent
#E64297
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #270F41

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

Preview Lab → · Contrast checker → · Palette generator →

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