#270A42#270A42

#270A42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.099 H 302.7°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#270A42
RGBrgb(39, 10, 66)
HSLhsl(271, 74%, 15%)
HSVhsv(271, 85%, 26%)
CMYKcmyk(40.9%, 84.8%, 0%, 74.1%)
CIE-LABlab(9.33, 27.17, -29.13)
CIE-LCHlch(9.33, 39.83, 313.01°)
OKLaboklab(23.06% 0.0534 -0.083)
OKLCHoklch(23.06% 0.099 302.7)
XYZxyz(1.9284, 1.0418, 5.2527)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A42 #25420A
analogous
#0B0A42 #270A42 #420A41
triadic
#270A42 #42270A #0A4227
tetradic
#270A42 #420B0A #25420A #0A4142
square
#270A42 #420B0A #25420A #0A4142
split-complementary
#270A42 #41420A #0A420B
monochromatic
#10041B #10041B #270A42 #461277 #661AAC

Accessibility & contrast

On white

17.38
#270A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A42
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A42#FFFFFF#000000##FFFFFF
##270A421.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270a42;
/* rgb */ color: rgb(39, 10, 66);
/* oklch */ color: oklch(23.1% 0.099 302.7);
Tailwind
colors: {
  custom: {
    50: '#654c77',
    500: '#270a42',
    950: '#000000',
  },
}
SCSS
$custom: #270a42;
$custom-light: #654c77;
$custom-dark: #000000;
JSON
{
  "hex": "#270a42",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 271.071,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23064,
    "c": 0.09874,
    "h": 302.7
  },
  "luminance": 0.01042
}

Semantic roles & 50–950 ramp

primary
#270A42
secondary
#527F29
accent
#F03791
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270A42

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

Preview Lab → · Contrast checker → · Palette generator →

#270A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva