#270945#270945

#270945 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.104 H 301.1°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#270945
RGBrgb(39, 9, 69)
HSLhsl(270, 77%, 15%)
HSVhsv(270, 87%, 27%)
CMYKcmyk(43.5%, 87%, 0%, 72.9%)
CIE-LABlab(9.45, 28.52, -31.05)
CIE-LCHlch(9.45, 42.16, 312.57°)
OKLaboklab(23.24% 0.0536 -0.0887)
OKLCHoklch(23.24% 0.104 301.1)
XYZxyz(2.0083, 1.0564, 5.7272)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270945 #274509
analogous
#090945 #270945 #450945
triadic
#270945 #452709 #094527
tetradic
#270945 #450909 #274509 #094545
square
#270945 #450909 #274509 #094545
split-complementary
#270945 #454509 #094509
monochromatic
#0F041B #0F041B #270945 #46107B #6417B1

Accessibility & contrast

On white

17.34
#270945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270945
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270945#FFFFFF#000000##FFFFFF
##2709451.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001A44
Tritanopia (blue-blind)
#201927
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270945;
/* rgb */ color: rgb(39, 9, 69);
/* oklch */ color: oklch(23.2% 0.104 301.1);
Tailwind
colors: {
  custom: {
    50: '#654c79',
    500: '#270945',
    950: '#000000',
  },
}
SCSS
$custom: #270945;
$custom-light: #654c79;
$custom-dark: #000000;
JSON
{
  "hex": "#270945",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23238,
    "c": 0.10362,
    "h": 301.1
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#270945
secondary
#558327
accent
#F33494
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270945

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

Preview Lab → · Contrast checker → · Palette generator →

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