#2B0A40#2B0A40

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

Color values

HEX#2B0A40
RGBrgb(43, 10, 64)
HSLhsl(277, 73%, 15%)
HSVhsv(277, 84%, 25%)
CMYKcmyk(32.8%, 84.4%, 0%, 74.9%)
CIE-LABlab(9.81, 27.50, -26.91)
CIE-LCHlch(9.81, 38.47, 315.61°)
OKLaboklab(23.48% 0.0606 -0.0764)
OKLCHoklch(23.48% 0.097 308.4)
XYZxyz(2.0300, 1.1009, 4.9550)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0A40 #1F400A
analogous
#100A40 #2B0A40 #400A3A
triadic
#2B0A40 #402B0A #0A402B
tetradic
#2B0A40 #40100A #1F400A #0A3A40
square
#2B0A40 #40100A #1F400A #0A3A40
split-complementary
#2B0A40 #3A400A #0A4010
monochromatic
#12041A #12041A #2B0A40 #4F1275 #721BAA

Accessibility & contrast

On white

17.21
#2B0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0A40
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0A40#FFFFFF#000000##FFFFFF
##2B0A401.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)
#001A42
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#281724
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0a40;
/* rgb */ color: rgb(43, 10, 64);
/* oklch */ color: oklch(23.5% 0.097 308.4);
Tailwind
colors: {
  custom: {
    50: '#674d75',
    500: '#2b0a40',
    950: '#000000',
  },
}
SCSS
$custom: #2b0a40;
$custom-light: #674d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0a40",
  "rgb": {
    "r": 43,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 276.667,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23477,
    "c": 0.09748,
    "h": 308.4
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#2B0A40
secondary
#497D29
accent
#F03880
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0A40

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

Preview Lab → · Contrast checker → · Palette generator →

#2B0A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva