#2B136C#2B136C

#2B136C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.141 H 286.0°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2B136C
RGBrgb(43, 19, 108)
HSLhsl(256, 70%, 25%)
HSVhsv(256, 82%, 42%)
CMYKcmyk(60.2%, 82.4%, 0%, 57.6%)
CIE-LABlab(15.81, 35.87, -47.00)
CIE-LCHlch(15.81, 59.12, 307.35°)
OKLaboklab(29.04% 0.0389 -0.1353)
OKLCHoklch(29.04% 0.141 286)
XYZxyz(3.9351, 2.0618, 14.3751)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B136C #546C13
analogous
#13276C #2B136C #58136C
triadic
#2B136C #6C2B13 #136C2B
tetradic
#2B136C #6C1327 #546C13 #136C58
square
#2B136C #6C1327 #546C13 #136C58
split-complementary
#2B136C #6C5813 #276C13
monochromatic
#0A051A #160A38 #2B136C #401CA0 #5425D4

Accessibility & contrast

On white

14.87
#2B136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B136C
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B136C#FFFFFF#000000##FFFFFF
##2B136C1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#0A2D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b136c;
/* rgb */ color: rgb(43, 19, 108);
/* oklch */ color: oklch(29.0% 0.141 286.0);
Tailwind
colors: {
  custom: {
    50: '#6d5497',
    500: '#2b136c',
    950: '#000000',
  },
}
SCSS
$custom: #2b136c;
$custom-light: #6d5497;
$custom-dark: #000000;
JSON
{
  "hex": "#2b136c",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 256.18,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29041,
    "c": 0.14083,
    "h": 286
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#2B136C
secondary
#86A338
accent
#ED3BBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B136C

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

Preview Lab → · Contrast checker → · Palette generator →

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