#2B0C4E#2B0C4E

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

Color values

HEX#2B0C4E
RGBrgb(43, 12, 78)
HSLhsl(268, 73%, 18%)
HSVhsv(268, 85%, 31%)
CMYKcmyk(44.9%, 84.6%, 0%, 69.4%)
CIE-LABlab(11.46, 30.38, -34.02)
CIE-LCHlch(11.46, 45.61, 311.77°)
OKLaboklab(25.05% 0.0547 -0.0973)
OKLCHoklch(25.05% 0.112 299.3)
XYZxyz(2.5025, 1.3266, 7.3305)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C4E #2F4E0C
analogous
#0C0E4E #2B0C4E #4C0C4E
triadic
#2B0C4E #4E2B0C #0C4E2B
tetradic
#2B0C4E #4E0C0E #2F4E0C #0C4E4C
square
#2B0C4E #4E0C0E #2F4E0C #0C4E4C
split-complementary
#2B0C4E #4E4C0C #0E4E0C
monochromatic
#0F041B #0F041B #2B0C4E #481483 #651CB8

Accessibility & contrast

On white

16.60
#2B0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0C4E
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C4E#FFFFFF#000000##FFFFFF
##2B0C4E1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#231E2D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b0c4e;
/* rgb */ color: rgb(43, 12, 78);
/* oklch */ color: oklch(25.1% 0.112 299.3);
Tailwind
colors: {
  custom: {
    50: '#694f80',
    500: '#2b0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c4e;
$custom-light: #694f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c4e",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 268.182,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25051,
    "c": 0.11159,
    "h": 299.3
  },
  "luminance": 0.01327
}

Semantic roles & 50–950 ramp

primary
#2B0C4E
secondary
#5E8A2C
accent
#F03899
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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