#2B1C83#2B1C83

#2B1C83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.161 H 279.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2B1C83
RGBrgb(43, 28, 131)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 79%, 51%)
CMYKcmyk(67.2%, 78.6%, 0%, 48.6%)
CIE-LABlab(19.97, 38.42, -54.90)
CIE-LCHlch(19.97, 67.01, 304.99°)
OKLaboklab(32.7% 0.0261 -0.1585)
OKLCHoklch(32.7% 0.161 279.3)
XYZxyz(5.5069, 2.9823, 21.7538)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C83 #74831C
analogous
#1C4083 #2B1C83 #5E1C83
triadic
#2B1C83 #832B1C #1C832B
tetradic
#2B1C83 #831C40 #74831C #1C835E
square
#2B1C83 #831C40 #74831C #1C835E
split-complementary
#2B1C83 #835E1C #40831C
monochromatic
#0A061E #1A1151 #2B1C83 #3C27B5 #5843D7

Accessibility & contrast

On white

13.15
#2B1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C83
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C83#FFFFFF#000000##FFFFFF
##2B1C831.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1c83;
/* rgb */ color: rgb(43, 28, 131);
/* oklch */ color: oklch(32.7% 0.161 279.3);
Tailwind
colors: {
  custom: {
    50: '#725ba8',
    500: '#2b1c83',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c83;
$custom-light: #725ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c83",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 248.738,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32704,
    "c": 0.16063,
    "h": 279.3
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#2B1C83
secondary
#A6B645
accent
#E840CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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