#2B0F56#2B0F56

#2B0F56 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.118 H 294.8°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2B0F56
RGBrgb(43, 15, 86)
HSLhsl(264, 70%, 20%)
HSVhsv(264, 83%, 34%)
CMYKcmyk(50%, 82.6%, 0%, 66.3%)
CIE-LABlab(12.78, 31.22, -37.33)
CIE-LCHlch(12.78, 48.67, 309.91°)
OKLaboklab(26.22% 0.0494 -0.107)
OKLCHoklch(26.22% 0.118 294.8)
XYZxyz(2.8463, 1.5270, 8.9471)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F56 #3A560F
analogous
#0F1756 #2B0F56 #4F0F56
triadic
#2B0F56 #562B0F #0F562B
tetradic
#2B0F56 #560F17 #3A560F #0F564F
square
#2B0F56 #560F17 #3A560F #0F564F
split-complementary
#2B0F56 #564F0F #17560F
monochromatic
#0D051A #110622 #2B0F56 #45188A #5F21BE

Accessibility & contrast

On white

16.09
#2B0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F56
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F56#FFFFFF#000000##FFFFFF
##2B0F561.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1E2232
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b0f56;
/* rgb */ color: rgb(43, 15, 86);
/* oklch */ color: oklch(26.2% 0.118 294.8);
Tailwind
colors: {
  custom: {
    50: '#6a5186',
    500: '#2b0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f56;
$custom-light: #6a5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f56",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 263.662,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26221,
    "c": 0.11785,
    "h": 294.8
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#2B0F56
secondary
#6A9031
accent
#ED3BA7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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