#2B043F#2B043F

#2B043F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.105 H 310.5°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#2B043F
RGBrgb(43, 4, 63)
HSLhsl(280, 88%, 13%)
HSVhsv(280, 94%, 25%)
CMYKcmyk(31.7%, 93.7%, 0%, 75.3%)
CIE-LABlab(8.65, 30.32, -28.08)
CIE-LCHlch(8.65, 41.33, 317.20°)
OKLaboklab(22.64% 0.068 -0.0797)
OKLCHoklch(22.64% 0.105 310.5)
XYZxyz(1.9367, 0.9594, 4.7848)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B043F #183F04
analogous
#0D043F #2B043F #3F0435
triadic
#2B043F #3F2B04 #043F2B
tetradic
#2B043F #3F0D04 #183F04 #04353F
square
#2B043F #3F0D04 #183F04 #04353F
split-complementary
#2B043F #353F04 #043F0D
monochromatic
#14021D #14021D #2B043F #520879 #7A0BB2

Accessibility & contrast

On white

17.62
#2B043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2B043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B043F
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B043F#FFFFFF#000000##FFFFFF
##2B043F1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#281322
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2b043f;
/* rgb */ color: rgb(43, 4, 63);
/* oklch */ color: oklch(22.6% 0.105 310.5);
Tailwind
colors: {
  custom: {
    50: '#684a74',
    500: '#2b043f',
    950: '#000000',
  },
}
SCSS
$custom: #2b043f;
$custom-light: #684a74;
$custom-dark: #000000;
JSON
{
  "hex": "#2b043f",
  "rgb": {
    "r": 43,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 279.661,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22638,
    "c": 0.10482,
    "h": 310.5
  },
  "luminance": 0.00959
}

Semantic roles & 50–950 ramp

primary
#2B043F
secondary
#40801E
accent
#FE2A72
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B043F

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

Preview Lab → · Contrast checker → · Palette generator →

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