#270402#270402

#270402 is a very dark, moderate red. Relative luminance 0.005; OKLCH L 18.1% C 0.061 H 30.3°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#270402
RGBrgb(39, 4, 2)
HSLhsl(3, 90%, 8%)
HSVhsv(3, 95%, 15%)
CMYKcmyk(0%, 89.7%, 94.9%, 84.7%)
CIE-LABlab(4.72, 16.12, 6.55)
CIE-LCHlch(4.72, 17.40, 22.11°)
OKLaboklab(18.07% 0.0529 0.0309)
OKLCHoklch(18.07% 0.061 30.3)
XYZxyz(0.8912, 0.5227, 0.1114)
Luminance0.0052 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270402 #022527
analogous
#270212 #270402 #271602
triadic
#270402 #022704 #040227
tetradic
#270402 #122702 #022527 #160227
square
#270402 #122702 #022527 #160227
split-complementary
#270402 #022716 #021227
monochromatic
#1D0301 #1D0301 #270402 #610A05 #9B1008

Accessibility & contrast

On white

19.01
#270402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#270402 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270402
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270402#FFFFFF#000000##FFFFFF
##2704021.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0B02
Deuteranopia (green-blind)
#171301
Tritanopia (blue-blind)
#2C0004
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #270402;
/* rgb */ color: rgb(39, 4, 2);
/* oklch */ color: oklch(18.1% 0.061 30.3);
Tailwind
colors: {
  custom: {
    50: '#624848',
    500: '#270402',
    950: '#000000',
  },
}
SCSS
$custom: #270402;
$custom-light: #624848;
$custom-dark: #000000;
JSON
{
  "hex": "#270402",
  "rgb": {
    "r": 39,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 3.243,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18071,
    "c": 0.0613,
    "h": 30.3
  },
  "luminance": 0.00523
}

Semantic roles & 50–950 ramp

primary
#270402
secondary
#18686C
accent
#F3FF29
background
#F6F4F4
surface
#EBE6E6
border
#C6C2C2
text
#050000
muted
#7A7777

Preview Lab

Preview with #270402

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

Preview Lab → · Contrast checker → · Palette generator →

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