#2B0F4A#2B0F4A

#2B0F4A is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.103 H 300.8°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2B0F4A
RGBrgb(43, 15, 74)
HSLhsl(268, 66%, 17%)
HSVhsv(268, 80%, 29%)
CMYKcmyk(41.9%, 79.7%, 0%, 71%)
CIE-LABlab(11.62, 27.70, -30.99)
CIE-LCHlch(11.62, 41.57, 311.79°)
OKLaboklab(25.04% 0.0526 -0.0884)
OKLCHoklch(25.04% 0.103 300.8)
XYZxyz(2.4028, 1.3496, 6.6112)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F4A #2E4A0F
analogous
#0F104A #2B0F4A #490F4A
triadic
#2B0F4A #4A2B0F #0F4A2B
tetradic
#2B0F4A #4A0F10 #2E4A0F #0F4A49
square
#2B0F4A #4A0F10 #2E4A0F #0F4A49
split-complementary
#2B0F4A #4A490F #104A0F
monochromatic
#0F0519 #0F0519 #2B0F4A #49197D #6624B0

Accessibility & contrast

On white

16.54
#2B0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F4A
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F4A#FFFFFF#000000##FFFFFF
##2B0F4A1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#241E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0f4a;
/* rgb */ color: rgb(43, 15, 74);
/* oklch */ color: oklch(25.0% 0.103 300.8);
Tailwind
colors: {
  custom: {
    50: '#68507d',
    500: '#2b0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f4a;
$custom-light: #68507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f4a",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 268.475,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25044,
    "c": 0.10287,
    "h": 300.8
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#2B0F4A
secondary
#5D8430
accent
#E93F98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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