#270B41#270B41

#270B41 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.096 H 303.1°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#270B41
RGBrgb(39, 11, 65)
HSLhsl(271, 71%, 15%)
HSVhsv(271, 83%, 25%)
CMYKcmyk(40%, 83.1%, 0%, 74.5%)
CIE-LABlab(9.42, 26.38, -28.28)
CIE-LCHlch(9.42, 38.67, 313.01°)
OKLaboklab(23.1% 0.0526 -0.0806)
OKLCHoklch(23.1% 0.096 303.1)
XYZxyz(1.9103, 1.0523, 5.1025)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B41 #25410B
analogous
#0C0B41 #270B41 #410B40
triadic
#270B41 #41270B #0B4127
tetradic
#270B41 #410C0B #25410B #0B4041
square
#270B41 #410C0B #25410B #0B4041
split-complementary
#270B41 #40410B #0B410C
monochromatic
#10041A #10041A #270B41 #461475 #661DAA

Accessibility & contrast

On white

17.35
#270B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B41
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B41#FFFFFF#000000##FFFFFF
##270B411.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270b41;
/* rgb */ color: rgb(39, 11, 65);
/* oklch */ color: oklch(23.1% 0.096 303.1);
Tailwind
colors: {
  custom: {
    50: '#644d76',
    500: '#270b41',
    950: '#000000',
  },
}
SCSS
$custom: #270b41;
$custom-light: #644d76;
$custom-dark: #000000;
JSON
{
  "hex": "#270b41",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 271.111,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23095,
    "c": 0.09619,
    "h": 303.1
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#270B41
secondary
#527E2A
accent
#EE3A91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270B41

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

Preview Lab → · Contrast checker → · Palette generator →

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