#2B108E#2B108E

#2B108E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.7% C 0.183 H 278.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2B108E
RGBrgb(43, 16, 142)
HSLhsl(253, 80%, 31%)
HSVhsv(253, 89%, 56%)
CMYKcmyk(69.7%, 88.7%, 0%, 44.3%)
CIE-LABlab(19.38, 47.29, -62.79)
CIE-LCHlch(19.38, 78.60, 306.98°)
OKLaboklab(32.67% 0.0281 -0.1813)
OKLCHoklch(32.67% 0.183 278.8)
XYZxyz(6.0625, 2.8366, 25.8140)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B108E #738E10
analogous
#10348E #2B108E #6A108E
triadic
#2B108E #8E2B10 #108E2B
tetradic
#2B108E #8E1034 #738E10 #108E6A
square
#2B108E #8E1034 #738E10 #108E6A
split-complementary
#2B108E #8E6A10 #348E10
monochromatic
#0A0420 #1A0A57 #2B108E #3C16C5 #5831E8

Accessibility & contrast

On white

13.40
#2B108E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B108E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B108E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B108E#FFFFFF#000000##FFFFFF
##2B108E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003A53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b108e;
/* rgb */ color: rgb(43, 16, 142);
/* oklch */ color: oklch(32.7% 0.183 278.8);
Tailwind
colors: {
  custom: {
    50: '#7556b0',
    500: '#2b108e',
    950: '#000000',
  },
}
SCSS
$custom: #2b108e;
$custom-light: #7556b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b108e",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 142
  },
  "hsl": {
    "h": 252.857,
    "s": 79.747,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.18343,
    "h": 278.8
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#2B108E
secondary
#A5C337
accent
#F632CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B108E

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

Preview Lab → · Contrast checker → · Palette generator →

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