#2B0F42#2B0F42

#2B0F42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.093 H 305.7°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#2B0F42
RGBrgb(43, 15, 66)
HSLhsl(273, 63%, 16%)
HSVhsv(273, 77%, 26%)
CMYKcmyk(34.8%, 77.3%, 0%, 74.1%)
CIE-LABlab(10.91, 25.41, -26.54)
CIE-LCHlch(10.91, 36.74, 313.76°)
OKLaboklab(24.32% 0.0541 -0.0753)
OKLCHoklch(24.32% 0.093 305.7)
XYZxyz(2.1502, 1.2486, 5.2809)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F42 #26420F
analogous
#110F42 #2B0F42 #420F3F
triadic
#2B0F42 #422B0F #0F422B
tetradic
#2B0F42 #42110F #26420F #0F3F42
square
#2B0F42 #42110F #26420F #0F3F42
split-complementary
#2B0F42 #3F420F #0F4211
monochromatic
#100619 #100619 #2B0F42 #4B1A74 #6C26A6

Accessibility & contrast

On white

16.80
#2B0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2B0F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F42
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F42#FFFFFF#000000##FFFFFF
##2B0F421.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#021D41
Tritanopia (blue-blind)
#271A27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b0f42;
/* rgb */ color: rgb(43, 15, 66);
/* oklch */ color: oklch(24.3% 0.093 305.7);
Tailwind
colors: {
  custom: {
    50: '#675077',
    500: '#2b0f42',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f42;
$custom-light: #675077;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f42",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 272.941,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24318,
    "c": 0.09274,
    "h": 305.7
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

primary
#2B0F42
secondary
#537C30
accent
#E6428C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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