#270942#270942

#270942 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.100 H 303.0°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#270942
RGBrgb(39, 9, 66)
HSLhsl(272, 76%, 15%)
HSVhsv(272, 86%, 26%)
CMYKcmyk(40.9%, 86.4%, 0%, 74.1%)
CIE-LABlab(9.16, 27.68, -29.41)
CIE-LCHlch(9.16, 40.39, 313.25°)
OKLaboklab(22.94% 0.0545 -0.0839)
OKLCHoklch(22.94% 0.1 303)
XYZxyz(1.9175, 1.0201, 5.2491)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270942 #244209
analogous
#0B0942 #270942 #420941
triadic
#270942 #422709 #094227
tetradic
#270942 #420B09 #244209 #094142
square
#270942 #420B09 #244209 #094142
split-complementary
#270942 #414209 #09420B
monochromatic
#10041B #10041B #270942 #471078 #6718AE

Accessibility & contrast

On white

17.44
#270942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270942
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270942#FFFFFF#000000##FFFFFF
##2709421.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#211825
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270942;
/* rgb */ color: rgb(39, 9, 66);
/* oklch */ color: oklch(22.9% 0.100 303.0);
Tailwind
colors: {
  custom: {
    50: '#654c77',
    500: '#270942',
    950: '#000000',
  },
}
SCSS
$custom: #270942;
$custom-light: #654c77;
$custom-dark: #000000;
JSON
{
  "hex": "#270942",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 271.579,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2294,
    "c": 0.10003,
    "h": 303
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#270942
secondary
#518027
accent
#F3358F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270942

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

Preview Lab → · Contrast checker → · Palette generator →

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