#2B1B63#2B1B63

#2B1B63 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.120 H 286.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2B1B63
RGBrgb(43, 27, 99)
HSLhsl(253, 57%, 25%)
HSVhsv(253, 73%, 39%)
CMYKcmyk(56.6%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.49, 28.47, -39.96)
CIE-LCHlch(16.49, 49.06, 305.47°)
OKLaboklab(29.25% 0.0343 -0.1148)
OKLCHoklch(29.25% 0.12 286.6)
XYZxyz(3.6397, 2.1981, 12.0345)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B63 #53631B
analogous
#1B2F63 #2B1B63 #4F1B63
triadic
#2B1B63 #632B1B #1B632B
tetradic
#2B1B63 #631B2F #53631B #1B634F
square
#2B1B63 #631B2F #53631B #1B634F
split-complementary
#2B1B63 #634F1B #2F631B
monochromatic
#0A0718 #160E33 #2B1B63 #402893 #5535C3

Accessibility & contrast

On white

14.59
#2B1B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B63
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B63#FFFFFF#000000##FFFFFF
##2B1B631.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#142D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1b63;
/* rgb */ color: rgb(43, 27, 99);
/* oklch */ color: oklch(29.2% 0.120 286.6);
Tailwind
colors: {
  custom: {
    50: '#6b5990',
    500: '#2b1b63',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b63;
$custom-light: #6b5990;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b63",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 253.333,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29246,
    "c": 0.1198,
    "h": 286.6
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#2B1B63
secondary
#859841
accent
#E047BE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1B63

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

Preview Lab → · Contrast checker → · Palette generator →

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