#2B0D4F#2B0D4F

#2B0D4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.112 H 298.6°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2B0D4F
RGBrgb(43, 13, 79)
HSLhsl(267, 72%, 18%)
HSVhsv(267, 84%, 31%)
CMYKcmyk(45.6%, 83.5%, 0%, 69%)
CIE-LABlab(11.73, 30.18, -34.27)
CIE-LCHlch(11.73, 45.66, 311.37°)
OKLaboklab(25.27% 0.0534 -0.098)
OKLCHoklch(25.27% 0.112 298.6)
XYZxyz(2.5511, 1.3659, 7.5249)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0D4F #314F0D
analogous
#0D104F #2B0D4F #4C0D4F
triadic
#2B0D4F #4F2B0D #0D4F2B
tetradic
#2B0D4F #4F0D10 #314F0D #0D4F4C
square
#2B0D4F #4F0D10 #314F0D #0D4F4C
split-complementary
#2B0D4F #4F4C0D #104F0D
monochromatic
#0E041A #0E041A #2B0D4F #481684 #641EB8

Accessibility & contrast

On white

16.49
#2B0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0D4F
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0D4F#FFFFFF#000000##FFFFFF
##2B0D4F1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#221F2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0d4f;
/* rgb */ color: rgb(43, 13, 79);
/* oklch */ color: oklch(25.3% 0.112 298.6);
Tailwind
colors: {
  custom: {
    50: '#694f81',
    500: '#2b0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2b0d4f;
$custom-light: #694f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0d4f",
  "rgb": {
    "r": 43,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 267.273,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2527,
    "c": 0.11161,
    "h": 298.6
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#2B0D4F
secondary
#608A2E
accent
#EE399C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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