#2B1C8C#2B1C8C

#2B1C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.172 H 277.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1C8C
RGBrgb(43, 28, 140)
HSLhsl(248, 67%, 33%)
HSVhsv(248, 80%, 55%)
CMYKcmyk(69.3%, 80%, 0%, 45.1%)
CIE-LABlab(20.97, 41.31, -58.90)
CIE-LCHlch(20.97, 71.95, 305.04°)
OKLaboklab(33.7% 0.0236 -0.1702)
OKLCHoklch(33.7% 0.172 277.9)
XYZxyz(6.1436, 3.2370, 25.1069)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C8C #7D8C1C
analogous
#1C458C #2B1C8C #631C8C
triadic
#2B1C8C #8C2B1C #1C8C2B
tetradic
#2B1C8C #8C1C45 #7D8C1C #1C8C63
square
#2B1C8C #8C1C45 #7D8C1C #1C8C63
split-complementary
#2B1C8C #8C631C #458C1C
monochromatic
#0C0826 #1B1259 #2B1C8C #3B26BF #5C48DA

Accessibility & contrast

On white

12.75
#2B1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C8C
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C8C#FFFFFF#000000##FFFFFF
##2B1C8C1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1c8c;
/* rgb */ color: rgb(43, 28, 140);
/* oklch */ color: oklch(33.7% 0.172 277.9);
Tailwind
colors: {
  custom: {
    50: '#745baf',
    500: '#2b1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c8c;
$custom-light: #745baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c8c",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 248.036,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.1718,
    "h": 277.9
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#2B1C8C
secondary
#ADBC48
accent
#EA3ED3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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