#2B126A#2B126A

#2B126A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.139 H 286.8°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2B126A
RGBrgb(43, 18, 106)
HSLhsl(257, 71%, 24%)
HSVhsv(257, 83%, 42%)
CMYKcmyk(59.4%, 83%, 0%, 58.4%)
CIE-LABlab(15.42, 35.75, -46.33)
CIE-LCHlch(15.42, 58.52, 307.65°)
OKLaboklab(28.7% 0.0403 -0.1334)
OKLCHoklch(28.7% 0.139 286.8)
XYZxyz(3.8133, 1.9866, 13.8154)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B126A #516A12
analogous
#12256A #2B126A #57126A
triadic
#2B126A #6A2B12 #126A2B
tetradic
#2B126A #6A1225 #516A12 #126A57
square
#2B126A #6A1225 #516A12 #126A57
split-complementary
#2B126A #6A5712 #256A12
monochromatic
#0B041A #160936 #2B126A #401B9E #5524D3

Accessibility & contrast

On white

15.03
#2B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B126A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B126A#FFFFFF#000000##FFFFFF
##2B126A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#0D2C3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b126a;
/* rgb */ color: rgb(43, 18, 106);
/* oklch */ color: oklch(28.7% 0.139 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5496',
    500: '#2b126a',
    950: '#000000',
  },
}
SCSS
$custom: #2b126a;
$custom-light: #6d5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2b126a",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 257.045,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28702,
    "c": 0.13935,
    "h": 286.8
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#2B126A
secondary
#83A236
accent
#EE3ABB
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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