#270938#270938

#270938 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.088 H 310.2°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#270938
RGBrgb(39, 9, 56)
HSLhsl(278, 72%, 13%)
HSVhsv(278, 84%, 22%)
CMYKcmyk(30.4%, 83.9%, 0%, 78%)
CIE-LABlab(8.24, 24.94, -23.74)
CIE-LCHlch(8.24, 34.43, 316.41°)
OKLaboklab(22% 0.0569 -0.0672)
OKLCHoklch(22% 0.088 310.2)
XYZxyz(1.6481, 0.9123, 3.8299)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270938 #1A3809
analogous
#0F0938 #270938 #380931
triadic
#270938 #382709 #093827
tetradic
#270938 #380F09 #1A3809 #093138
square
#270938 #380F09 #1A3809 #093138
split-complementary
#270938 #313809 #09380F
monochromatic
#12041A #12041A #270938 #4C116D #701AA1

Accessibility & contrast

On white

17.76
#270938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#270938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270938
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270938#FFFFFF#000000##FFFFFF
##2709381.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#031837
Tritanopia (blue-blind)
#25141F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270938;
/* rgb */ color: rgb(39, 9, 56);
/* oklch */ color: oklch(22.0% 0.088 310.2);
Tailwind
colors: {
  custom: {
    50: '#634b6f',
    500: '#270938',
    950: '#000000',
  },
}
SCSS
$custom: #270938;
$custom-light: #634b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#270938",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 278.298,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22003,
    "c": 0.08804,
    "h": 310.2
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#270938
secondary
#437627
accent
#EF397B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #270938

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

Preview Lab → · Contrast checker → · Palette generator →

#270938 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva