#2B0D40#2B0D40

#2B0D40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.093 H 307.7°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#2B0D40
RGBrgb(43, 13, 64)
HSLhsl(275, 66%, 15%)
HSVhsv(275, 80%, 25%)
CMYKcmyk(32.8%, 79.7%, 0%, 74.9%)
CIE-LABlab(10.35, 25.97, -26.04)
CIE-LCHlch(10.35, 36.77, 314.92°)
OKLaboklab(23.86% 0.057 -0.0738)
OKLCHoklch(23.86% 0.093 307.7)
XYZxyz(2.0654, 1.1716, 4.9668)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0D40 #22400D
analogous
#110D40 #2B0D40 #400D3C
triadic
#2B0D40 #402B0D #0D402B
tetradic
#2B0D40 #40110D #22400D #0D3C40
square
#2B0D40 #40110D #22400D #0D3C40
split-complementary
#2B0D40 #3C400D #0D4011
monochromatic
#110519 #110519 #2B0D40 #4D1773 #6F22A6

Accessibility & contrast

On white

17.01
#2B0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2B0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0D40
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0D40#FFFFFF#000000##FFFFFF
##2B0D401.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#281825
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2b0d40;
/* rgb */ color: rgb(43, 13, 64);
/* oklch */ color: oklch(23.9% 0.093 307.7);
Tailwind
colors: {
  custom: {
    50: '#674e75',
    500: '#2b0d40',
    950: '#000000',
  },
}
SCSS
$custom: #2b0d40;
$custom-light: #674e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0d40",
  "rgb": {
    "r": 43,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 275.294,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23861,
    "c": 0.09327,
    "h": 307.7
  },
  "luminance": 0.01172
}

Semantic roles & 50–950 ramp

primary
#2B0D40
secondary
#4D7C2D
accent
#E93F85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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