#2B0F6A#2B0F6A

#2B0F6A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.142 H 287.3°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2B0F6A
RGBrgb(43, 15, 106)
HSLhsl(258, 75%, 24%)
HSVhsv(258, 86%, 42%)
CMYKcmyk(59.4%, 85.8%, 0%, 58.4%)
CIE-LABlab(14.93, 37.17, -47.14)
CIE-LCHlch(14.93, 60.03, 308.26°)
OKLaboklab(28.37% 0.0424 -0.1357)
OKLCHoklch(28.37% 0.142 287.3)
XYZxyz(3.7678, 1.8956, 13.8002)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F6A #4E6A0F
analogous
#0F206A #2B0F6A #580F6A
triadic
#2B0F6A #6A2B0F #0F6A2B
tetradic
#2B0F6A #6A0F20 #4E6A0F #0F6A58
square
#2B0F6A #6A0F20 #4E6A0F #0F6A58
split-complementary
#2B0F6A #6A580F #206A0F
monochromatic
#0B041B #150734 #2B0F6A #4117A0 #561ED5

Accessibility & contrast

On white

15.23
#2B0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F6A
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F6A#FFFFFF#000000##FFFFFF
##2B0F6A1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#0D2B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b0f6a;
/* rgb */ color: rgb(43, 15, 106);
/* oklch */ color: oklch(28.4% 0.142 287.3);
Tailwind
colors: {
  custom: {
    50: '#6d5296',
    500: '#2b0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f6a;
$custom-light: #6d5296;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f6a",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 258.462,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28365,
    "c": 0.14216,
    "h": 287.3
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2B0F6A
secondary
#80A232
accent
#F236B8
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2B0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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