#2B1C7E#2B1C7E

#2B1C7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.154 H 280.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2B1C7E
RGBrgb(43, 28, 126)
HSLhsl(249, 64%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(65.9%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.43, 36.79, -52.62)
CIE-LCHlch(19.43, 64.21, 304.96°)
OKLaboklab(32.16% 0.0274 -0.1519)
OKLCHoklch(32.16% 0.154 280.2)
XYZxyz(5.1762, 2.8501, 20.0120)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C7E #6F7E1C
analogous
#1C3E7E #2B1C7E #5C1C7E
triadic
#2B1C7E #7E2B1C #1C7E2B
tetradic
#2B1C7E #7E1C3E #6F7E1C #1C7E5C
square
#2B1C7E #7E1C3E #6F7E1C #1C7E5C
split-complementary
#2B1C7E #7E5C1C #3E7E1C
monochromatic
#09061A #1A114C #2B1C7E #3C27B0 #5740D5

Accessibility & contrast

On white

13.38
#2B1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C7E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C7E#FFFFFF#000000##FFFFFF
##2B1C7E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1c7e;
/* rgb */ color: rgb(43, 28, 126);
/* oklch */ color: oklch(32.2% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2b1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c7e;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c7e",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 249.184,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32163,
    "c": 0.1543,
    "h": 280.2
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#2B1C7E
secondary
#A1B244
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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