#2B105E#2B105E

#2B105E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.127 H 291.2°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2B105E
RGBrgb(43, 16, 94)
HSLhsl(261, 71%, 22%)
HSVhsv(261, 83%, 37%)
CMYKcmyk(54.3%, 83%, 0%, 63.1%)
CIE-LABlab(13.78, 33.11, -41.08)
CIE-LCHlch(13.78, 52.76, 308.87°)
OKLaboklab(27.17% 0.0459 -0.118)
OKLCHoklch(27.17% 0.127 291.2)
XYZxyz(3.2014, 1.6922, 10.7455)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B105E #435E10
analogous
#101C5E #2B105E #52105E
triadic
#2B105E #5E2B10 #105E2B
tetradic
#2B105E #5E101C #435E10 #105E52
square
#2B105E #5E101C #435E10 #105E52
split-complementary
#2B105E #5E5210 #1C5E10
monochromatic
#0C041A #13072A #2B105E #431992 #5B22C7

Accessibility & contrast

On white

15.69
#2B105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B105E
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B105E#FFFFFF#000000##FFFFFF
##2B105E1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#192637
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b105e;
/* rgb */ color: rgb(43, 16, 94);
/* oklch */ color: oklch(27.2% 0.127 291.2);
Tailwind
colors: {
  custom: {
    50: '#6b528c',
    500: '#2b105e',
    950: '#000000',
  },
}
SCSS
$custom: #2b105e;
$custom-light: #6b528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b105e",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 260.769,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27174,
    "c": 0.12662,
    "h": 291.2
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#2B105E
secondary
#749733
accent
#EE3AB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B105E

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

Preview Lab → · Contrast checker → · Palette generator →

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