#270B42#270B42

#270B42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.097 H 302.5°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#270B42
RGBrgb(39, 11, 66)
HSLhsl(271, 71%, 15%)
HSVhsv(271, 83%, 26%)
CMYKcmyk(40.9%, 83.3%, 0%, 74.1%)
CIE-LABlab(9.51, 26.66, -28.83)
CIE-LCHlch(9.51, 39.27, 312.76°)
OKLaboklab(23.19% 0.0523 -0.0822)
OKLCHoklch(23.19% 0.097 302.5)
XYZxyz(1.9395, 1.0640, 5.2564)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B42 #26420B
analogous
#0B0B42 #270B42 #420B42
triadic
#270B42 #42270B #0B4227
tetradic
#270B42 #420B0B #26420B #0B4242
square
#270B42 #420B0B #26420B #0B4242
split-complementary
#270B42 #42420B #0B420B
monochromatic
#0F041A #0F041A #270B42 #461476 #651CAB

Accessibility & contrast

On white

17.32
#270B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B42
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B42#FFFFFF#000000##FFFFFF
##270B421.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270b42;
/* rgb */ color: rgb(39, 11, 66);
/* oklch */ color: oklch(23.2% 0.097 302.5);
Tailwind
colors: {
  custom: {
    50: '#644d77',
    500: '#270b42',
    950: '#000000',
  },
}
SCSS
$custom: #270b42;
$custom-light: #644d77;
$custom-dark: #000000;
JSON
{
  "hex": "#270b42",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 270.545,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23191,
    "c": 0.09743,
    "h": 302.5
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#270B42
secondary
#547F2A
accent
#EE3A92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270B42

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

Preview Lab → · Contrast checker → · Palette generator →

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