#2B126E#2B126E

#2B126E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.144 H 285.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2B126E
RGBrgb(43, 18, 110)
HSLhsl(256, 72%, 25%)
HSVhsv(256, 84%, 43%)
CMYKcmyk(60.9%, 83.6%, 0%, 56.9%)
CIE-LABlab(15.86, 36.97, -48.22)
CIE-LCHlch(15.86, 60.76, 307.48°)
OKLaboklab(29.14% 0.0389 -0.1389)
OKLCHoklch(29.14% 0.144 285.7)
XYZxyz(4.0262, 2.0718, 14.9366)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B126E #556E12
analogous
#12276E #2B126E #59126E
triadic
#2B126E #6E2B12 #126E2B
tetradic
#2B126E #6E1227 #556E12 #126E59
square
#2B126E #6E1227 #556E12 #126E59
split-complementary
#2B126E #6E5912 #276E12
monochromatic
#0A041A #160939 #2B126E #401BA3 #5423D7

Accessibility & contrast

On white

14.85
#2B126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B126E
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B126E#FFFFFF#000000##FFFFFF
##2B126E1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#072D40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b126e;
/* rgb */ color: rgb(43, 18, 110);
/* oklch */ color: oklch(29.1% 0.144 285.7);
Tailwind
colors: {
  custom: {
    50: '#6e5499',
    500: '#2b126e',
    950: '#000000',
  },
}
SCSS
$custom: #2b126e;
$custom-light: #6e5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2b126e",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 256.304,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29142,
    "c": 0.14426,
    "h": 285.7
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#2B126E
secondary
#87A537
accent
#EF39BD
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B126E

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

Preview Lab → · Contrast checker → · Palette generator →

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