#2B0843#2B0843

#2B0843 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.104 H 306.8°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#2B0843
RGBrgb(43, 8, 67)
HSLhsl(276, 79%, 15%)
HSVhsv(276, 88%, 26%)
CMYKcmyk(35.8%, 88.1%, 0%, 73.7%)
CIE-LABlab(9.74, 29.27, -29.15)
CIE-LCHlch(9.74, 41.30, 315.12°)
OKLaboklab(23.52% 0.062 -0.0829)
OKLCHoklch(23.52% 0.104 306.8)
XYZxyz(2.0960, 1.0925, 5.4096)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0843 #204308
analogous
#0D0843 #2B0843 #43083E
triadic
#2B0843 #432B08 #08432B
tetradic
#2B0843 #430D08 #204308 #083E43
square
#2B0843 #430D08 #204308 #083E43
split-complementary
#2B0843 #3E4308 #08430D
monochromatic
#12031B #12031B #2B0843 #4E0F7A #7115B0

Accessibility & contrast

On white

17.23
#2B0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0843
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0843#FFFFFF#000000##FFFFFF
##2B08431.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001B42
Tritanopia (blue-blind)
#271725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0843;
/* rgb */ color: rgb(43, 8, 67);
/* oklch */ color: oklch(23.5% 0.104 306.8);
Tailwind
colors: {
  custom: {
    50: '#684c78',
    500: '#2b0843',
    950: '#000000',
  },
}
SCSS
$custom: #2b0843;
$custom-light: #684c78;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0843",
  "rgb": {
    "r": 43,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 275.593,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23517,
    "c": 0.10355,
    "h": 306.8
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#2B0843
secondary
#4B8125
accent
#F53382
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0843

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

Preview Lab → · Contrast checker → · Palette generator →

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