#2B0C4F#2B0C4F

#2B0C4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.113 H 298.8°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2B0C4F
RGBrgb(43, 12, 79)
HSLhsl(268, 74%, 18%)
HSVhsv(268, 85%, 31%)
CMYKcmyk(45.6%, 84.8%, 0%, 69%)
CIE-LABlab(11.56, 30.67, -34.54)
CIE-LCHlch(11.56, 46.19, 311.60°)
OKLaboklab(25.15% 0.0544 -0.0988)
OKLCHoklch(25.15% 0.113 298.8)
XYZxyz(2.5387, 1.3410, 7.5207)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C4F #304F0C
analogous
#0C0F4F #2B0C4F #4C0C4F
triadic
#2B0C4F #4F2B0C #0C4F2B
tetradic
#2B0C4F #4F0C0F #304F0C #0C4F4C
square
#2B0C4F #4F0C0F #304F0C #0C4F4C
split-complementary
#2B0C4F #4F4C0C #0F4F0C
monochromatic
#0E041B #0E041B #2B0C4F #481484 #651CB9

Accessibility & contrast

On white

16.56
#2B0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0C4F
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C4F#FFFFFF#000000##FFFFFF
##2B0C4F1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b0c4f;
/* rgb */ color: rgb(43, 12, 79);
/* oklch */ color: oklch(25.2% 0.113 298.8);
Tailwind
colors: {
  custom: {
    50: '#694f81',
    500: '#2b0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c4f;
$custom-light: #694f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c4f",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 267.761,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25151,
    "c": 0.11279,
    "h": 298.8
  },
  "luminance": 0.01341
}

Semantic roles & 50–950 ramp

primary
#2B0C4F
secondary
#5F8B2C
accent
#F0389B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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