#2B1A6E#2B1A6E

#2B1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.136 H 284.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2B1A6E
RGBrgb(43, 26, 110)
HSLhsl(252, 62%, 27%)
HSVhsv(252, 76%, 43%)
CMYKcmyk(60.9%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.36, 32.70, -45.75)
CIE-LCHlch(17.36, 56.24, 305.55°)
OKLaboklab(30.19% 0.0329 -0.1318)
OKLCHoklch(30.19% 0.136 284)
XYZxyz(4.1793, 2.3779, 14.9876)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A6E #5D6E1A
analogous
#1A336E #2B1A6E #551A6E
triadic
#2B1A6E #6E2B1A #1A6E2B
tetradic
#2B1A6E #6E1A33 #5D6E1A #1A6E55
square
#2B1A6E #6E1A33 #5D6E1A #1A6E55
split-complementary
#2B1A6E #6E551A #336E1A
monochromatic
#0A0619 #180E3D #2B1A6E #3E26A0 #5334CF

Accessibility & contrast

On white

14.23
#2B1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A6E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A6E#FFFFFF#000000##FFFFFF
##2B1A6E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#053142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1a6e;
/* rgb */ color: rgb(43, 26, 110);
/* oklch */ color: oklch(30.2% 0.136 284.0);
Tailwind
colors: {
  custom: {
    50: '#6d5898',
    500: '#2b1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a6e;
$custom-light: #6d5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a6e",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 252.143,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30192,
    "c": 0.13582,
    "h": 284
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#2B1A6E
secondary
#8FA341
accent
#E543C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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