#270338#270338

#270338 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.098 H 311.8°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#270338
RGBrgb(39, 3, 56)
HSLhsl(281, 90%, 12%)
HSVhsv(281, 95%, 22%)
CMYKcmyk(30.4%, 94.6%, 0%, 78%)
CIE-LABlab(7.06, 28.27, -25.64)
CIE-LCHlch(7.06, 38.17, 317.79°)
OKLaboklab(21.15% 0.0652 -0.0729)
OKLCHoklch(21.15% 0.098 311.8)
XYZxyz(1.5829, 0.7820, 3.8082)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270338 #143803
analogous
#0D0338 #270338 #38032F
triadic
#270338 #382703 #033827
tetradic
#270338 #380D03 #143803 #032F38
square
#270338 #380D03 #143803 #032F38
split-complementary
#270338 #2F3803 #03380D
monochromatic
#14021D #14021D #270338 #4F0672 #7809AC

Accessibility & contrast

On white

18.16
#270338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#270338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270338
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270338#FFFFFF#000000##FFFFFF
##2703381.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#25101E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270338;
/* rgb */ color: rgb(39, 3, 56);
/* oklch */ color: oklch(21.2% 0.098 311.8);
Tailwind
colors: {
  custom: {
    50: '#64486f',
    500: '#270338',
    950: '#000000',
  },
}
SCSS
$custom: #270338;
$custom-light: #64486f;
$custom-dark: #000000;
JSON
{
  "hex": "#270338",
  "rgb": {
    "r": 39,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 280.755,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21151,
    "c": 0.09785,
    "h": 311.8
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#270338
secondary
#3A7B1C
accent
#FF296E
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060007
muted
#7A777A

Preview Lab

Preview with #270338

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

Preview Lab → · Contrast checker → · Palette generator →

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