#2B0F51#2B0F51

#2B0F51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.112 H 297.1°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2B0F51
RGBrgb(43, 15, 81)
HSLhsl(265, 69%, 19%)
HSVhsv(265, 81%, 32%)
CMYKcmyk(46.9%, 81.5%, 0%, 68.2%)
CIE-LABlab(12.28, 29.74, -34.74)
CIE-LCHlch(12.28, 45.73, 310.57°)
OKLaboklab(25.72% 0.0508 -0.0994)
OKLCHoklch(25.72% 0.112 297.1)
XYZxyz(2.6519, 1.4493, 7.9230)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F51 #35510F
analogous
#0F1451 #2B0F51 #4C0F51
triadic
#2B0F51 #512B0F #0F512B
tetradic
#2B0F51 #510F14 #35510F #0F514C
square
#2B0F51 #510F14 #35510F #0F514C
split-complementary
#2B0F51 #514C0F #14510F
monochromatic
#0E051A #10051D #2B0F51 #461985 #6222B8

Accessibility & contrast

On white

16.28
#2B0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B0F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F51
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F51#FFFFFF#000000##FFFFFF
##2B0F511.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#21202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b0f51;
/* rgb */ color: rgb(43, 15, 81);
/* oklch */ color: oklch(25.7% 0.112 297.1);
Tailwind
colors: {
  custom: {
    50: '#695082',
    500: '#2b0f51',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f51;
$custom-light: #695082;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f51",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 265.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25719,
    "c": 0.11164,
    "h": 297.1
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#2B0F51
secondary
#658B31
accent
#EC3CA1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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