#270A41#270A41

#270A41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.098 H 303.4°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#270A41
RGBrgb(39, 10, 65)
HSLhsl(272, 73%, 15%)
HSVhsv(272, 85%, 25%)
CMYKcmyk(40%, 84.6%, 0%, 74.5%)
CIE-LABlab(9.24, 26.89, -28.57)
CIE-LCHlch(9.24, 39.23, 313.26°)
OKLaboklab(22.97% 0.0537 -0.0814)
OKLCHoklch(22.97% 0.098 303.4)
XYZxyz(1.8992, 1.0301, 5.0988)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A41 #24410A
analogous
#0B0A41 #270A41 #410A40
triadic
#270A41 #41270A #0A4127
tetradic
#270A41 #410B0A #24410A #0A4041
square
#270A41 #410B0A #24410A #0A4041
split-complementary
#270A41 #40410A #0A410B
monochromatic
#10041B #10041B #270A41 #471276 #671AAB

Accessibility & contrast

On white

17.41
#270A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270A41
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A41#FFFFFF#000000##FFFFFF
##270A411.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#221825
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270a41;
/* rgb */ color: rgb(39, 10, 65);
/* oklch */ color: oklch(23.0% 0.098 303.4);
Tailwind
colors: {
  custom: {
    50: '#644c76',
    500: '#270a41',
    950: '#000000',
  },
}
SCSS
$custom: #270a41;
$custom-light: #644c76;
$custom-dark: #000000;
JSON
{
  "hex": "#270a41",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 271.636,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22968,
    "c": 0.09752,
    "h": 303.4
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#270A41
secondary
#517E29
accent
#F0388F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270A41

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

Preview Lab → · Contrast checker → · Palette generator →

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