#270B46#270B46

#270B46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.102 H 300.0°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#270B46
RGBrgb(39, 11, 70)
HSLhsl(268, 73%, 16%)
HSVhsv(268, 84%, 27%)
CMYKcmyk(44.3%, 84.3%, 0%, 72.5%)
CIE-LABlab(9.90, 27.81, -31.03)
CIE-LCHlch(9.90, 41.67, 311.87°)
OKLaboklab(23.58% 0.0512 -0.0887)
OKLCHoklch(23.58% 0.102 300)
XYZxyz(2.0616, 1.1129, 5.8994)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B46 #2A460B
analogous
#0B0C46 #270B46 #440B46
triadic
#270B46 #46270B #0B4627
tetradic
#270B46 #460B0C #2A460B #0B4644
square
#270B46 #460B0C #2A460B #0B4644
split-complementary
#270B46 #46440B #0C460B
monochromatic
#0F041A #0F041A #270B46 #44137B #621CB0

Accessibility & contrast

On white

17.18
#270B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270B46
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B46#FFFFFF#000000##FFFFFF
##270B461.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#201A28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270b46;
/* rgb */ color: rgb(39, 11, 70);
/* oklch */ color: oklch(23.6% 0.102 300.0);
Tailwind
colors: {
  custom: {
    50: '#654d7a',
    500: '#270b46',
    950: '#000000',
  },
}
SCSS
$custom: #270b46;
$custom-light: #654d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270b46",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 268.475,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23581,
    "c": 0.10238,
    "h": 300
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#270B46
secondary
#59822A
accent
#F03899
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270B46

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

Preview Lab → · Contrast checker → · Palette generator →

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