#270843#270843

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

Color values

HEX#270843
RGBrgb(39, 8, 67)
HSLhsl(272, 79%, 15%)
HSVhsv(272, 88%, 26%)
CMYKcmyk(41.8%, 88.1%, 0%, 73.7%)
CIE-LABlab(9.08, 28.47, -30.26)
CIE-LCHlch(9.08, 41.55, 313.26°)
OKLaboklab(22.91% 0.0553 -0.0863)
OKLCHoklch(22.91% 0.103 302.6)
XYZxyz(1.9364, 1.0102, 5.4021)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270843 #244308
analogous
#090843 #270843 #430842
triadic
#270843 #432708 #084327
tetradic
#270843 #430908 #244308 #084243
square
#270843 #430908 #244308 #084243
split-complementary
#270843 #424308 #084309
monochromatic
#10031B #10031B #270843 #470F7A #6715B0

Accessibility & contrast

On white

17.47
#270843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270843
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270843#FFFFFF#000000##FFFFFF
##2708431.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001942
Tritanopia (blue-blind)
#211825
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270843;
/* rgb */ color: rgb(39, 8, 67);
/* oklch */ color: oklch(22.9% 0.103 302.6);
Tailwind
colors: {
  custom: {
    50: '#654b78',
    500: '#270843',
    950: '#000000',
  },
}
SCSS
$custom: #270843;
$custom-light: #654b78;
$custom-dark: #000000;
JSON
{
  "hex": "#270843",
  "rgb": {
    "r": 39,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 271.525,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22914,
    "c": 0.10252,
    "h": 302.6
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#270843
secondary
#518125
accent
#F5338F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270843

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

Preview Lab → · Contrast checker → · Palette generator →

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