#2B0D4D#2B0D4D

#2B0D4D is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.109 H 299.6°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#2B0D4D
RGBrgb(43, 13, 77)
HSLhsl(268, 71%, 18%)
HSVhsv(268, 83%, 30%)
CMYKcmyk(44.2%, 83.1%, 0%, 69.8%)
CIE-LABlab(11.53, 29.61, -33.21)
CIE-LCHlch(11.53, 44.49, 311.72°)
OKLaboklab(25.07% 0.054 -0.0949)
OKLCHoklch(25.07% 0.109 299.6)
XYZxyz(2.4794, 1.3372, 7.1472)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0D4D #2F4D0D
analogous
#0D0F4D #2B0D4D #4B0D4D
triadic
#2B0D4D #4D2B0D #0D4D2B
tetradic
#2B0D4D #4D0D0F #2F4D0D #0D4D4B
square
#2B0D4D #4D0D0F #2F4D0D #0D4D4B
split-complementary
#2B0D4D #4D4B0D #0F4D0D
monochromatic
#0F041A #0F041A #2B0D4D #481681 #651FB6

Accessibility & contrast

On white

16.57
#2B0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0D4D
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0D4D#FFFFFF#000000##FFFFFF
##2B0D4D1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#231E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0d4d;
/* rgb */ color: rgb(43, 13, 77);
/* oklch */ color: oklch(25.1% 0.109 299.6);
Tailwind
colors: {
  custom: {
    50: '#694f7f',
    500: '#2b0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #2b0d4d;
$custom-light: #694f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0d4d",
  "rgb": {
    "r": 43,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 268.125,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25072,
    "c": 0.10918,
    "h": 299.6
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#2B0D4D
secondary
#5E882E
accent
#EE3A9A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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