#2B1C7C#2B1C7C

#2B1C7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.152 H 280.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2B1C7C
RGBrgb(43, 28, 124)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(65.3%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.22, 36.14, -51.70)
CIE-LCHlch(19.22, 63.08, 304.96°)
OKLaboklab(31.95% 0.0279 -0.1492)
OKLCHoklch(31.95% 0.152 280.6)
XYZxyz(5.0485, 2.7990, 19.3391)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C7C #6D7C1C
analogous
#1C3D7C #2B1C7C #5B1C7C
triadic
#2B1C7C #7C2B1C #1C7C2B
tetradic
#2B1C7C #7C1C3D #6D7C1C #1C7C5B
square
#2B1C7C #7C1C3D #6D7C1C #1C7C5B
split-complementary
#2B1C7C #7C5B1C #3D7C1C
monochromatic
#090619 #1A114A #2B1C7C #3C27AE #563FD4

Accessibility & contrast

On white

13.46
#2B1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C7C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C7C#FFFFFF#000000##FFFFFF
##2B1C7C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1c7c;
/* rgb */ color: rgb(43, 28, 124);
/* oklch */ color: oklch(31.9% 0.152 280.6);
Tailwind
colors: {
  custom: {
    50: '#705aa3',
    500: '#2b1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c7c;
$custom-light: #705aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c7c",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 249.375,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31949,
    "c": 0.15175,
    "h": 280.6
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#2B1C7C
secondary
#9FB044
accent
#E642CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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