#2B0F54#2B0F54

#2B0F54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.115 H 295.7°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2B0F54
RGBrgb(43, 15, 84)
HSLhsl(264, 70%, 19%)
HSVhsv(264, 82%, 33%)
CMYKcmyk(48.8%, 82.1%, 0%, 67.1%)
CIE-LABlab(12.58, 30.63, -36.30)
CIE-LCHlch(12.58, 47.50, 310.16°)
OKLaboklab(26.02% 0.05 -0.104)
OKLCHoklch(26.02% 0.115 295.7)
XYZxyz(2.7669, 1.4953, 8.5286)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F54 #38540F
analogous
#0F1654 #2B0F54 #4E0F54
triadic
#2B0F54 #542B0F #0F542B
tetradic
#2B0F54 #540F16 #38540F #0F544E
square
#2B0F54 #540F16 #38540F #0F544E
split-complementary
#2B0F54 #544E0F #16540F
monochromatic
#0D051A #100620 #2B0F54 #461888 #6022BC

Accessibility & contrast

On white

16.17
#2B0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F54
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F54#FFFFFF#000000##FFFFFF
##2B0F541.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#202231
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b0f54;
/* rgb */ color: rgb(43, 15, 84);
/* oklch */ color: oklch(26.0% 0.115 295.7);
Tailwind
colors: {
  custom: {
    50: '#695185',
    500: '#2b0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f54;
$custom-light: #695185;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f54",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 264.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26018,
    "c": 0.11537,
    "h": 295.7
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

primary
#2B0F54
secondary
#688E31
accent
#ED3BA5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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