#270B45#270B45

#270B45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.101 H 300.6°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#270B45
RGBrgb(39, 11, 69)
HSLhsl(269, 73%, 16%)
HSVhsv(269, 84%, 27%)
CMYKcmyk(43.5%, 84.1%, 0%, 72.9%)
CIE-LABlab(9.80, 27.52, -30.48)
CIE-LCHlch(9.80, 41.07, 312.08°)
OKLaboklab(23.48% 0.0515 -0.087)
OKLCHoklch(23.48% 0.101 300.6)
XYZxyz(2.0303, 1.1003, 5.7345)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B45 #29450B
analogous
#0B0C45 #270B45 #440B45
triadic
#270B45 #45270B #0B4527
tetradic
#270B45 #450B0C #29450B #0B4544
square
#270B45 #450B0C #29450B #0B4544
split-complementary
#270B45 #45440B #0C450B
monochromatic
#0F041A #0F041A #270B45 #45137A #631CAF

Accessibility & contrast

On white

17.21
#270B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B45
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B45#FFFFFF#000000##FFFFFF
##270B451.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#201A27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270b45;
/* rgb */ color: rgb(39, 11, 69);
/* oklch */ color: oklch(23.5% 0.101 300.6);
Tailwind
colors: {
  custom: {
    50: '#654d79',
    500: '#270b45',
    950: '#000000',
  },
}
SCSS
$custom: #270b45;
$custom-light: #654d79;
$custom-dark: #000000;
JSON
{
  "hex": "#270b45",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 268.966,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23482,
    "c": 0.10115,
    "h": 300.6
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#270B45
secondary
#57812A
accent
#EF3997
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270B45

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

Preview Lab → · Contrast checker → · Palette generator →

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