#2B0F40#2B0F40

#2B0F40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.090 H 307.1°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#2B0F40
RGBrgb(43, 15, 64)
HSLhsl(274, 62%, 15%)
HSVhsv(274, 77%, 25%)
CMYKcmyk(32.8%, 76.6%, 0%, 74.9%)
CIE-LABlab(10.74, 24.86, -25.39)
CIE-LCHlch(10.74, 35.54, 314.39°)
OKLaboklab(24.15% 0.0544 -0.0719)
OKLCHoklch(24.15% 0.09 307.1)
XYZxyz(2.0923, 1.2254, 4.9758)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F40 #24400F
analogous
#130F40 #2B0F40 #400F3C
triadic
#2B0F40 #402B0F #0F402B
tetradic
#2B0F40 #40130F #24400F #0F3C40
square
#2B0F40 #40130F #24400F #0F3C40
split-complementary
#2B0F40 #3C400F #0F4013
monochromatic
#110619 #110619 #2B0F40 #4C1B72 #6E26A3

Accessibility & contrast

On white

16.87
#2B0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F40
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F40#FFFFFF#000000##FFFFFF
##2B0F401.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#281A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b0f40;
/* rgb */ color: rgb(43, 15, 64);
/* oklch */ color: oklch(24.1% 0.090 307.1);
Tailwind
colors: {
  custom: {
    50: '#675075',
    500: '#2b0f40',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f40;
$custom-light: #675075;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f40",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 274.286,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24145,
    "c": 0.09019,
    "h": 307.1
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#2B0F40
secondary
#507A30
accent
#E54388
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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