#2B1C7D#2B1C7D

#2B1C7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.153 H 280.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1C7D
RGBrgb(43, 28, 125)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(65.6%, 77.6%, 0%, 51%)
CIE-LABlab(19.33, 36.47, -52.16)
CIE-LCHlch(19.33, 63.64, 304.96°)
OKLaboklab(32.06% 0.0276 -0.1505)
OKLCHoklch(32.06% 0.153 280.4)
XYZxyz(5.1120, 2.8244, 19.6738)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C7D #6E7D1C
analogous
#1C3E7D #2B1C7D #5B1C7D
triadic
#2B1C7D #7D2B1C #1C7D2B
tetradic
#2B1C7D #7D1C3E #6E7D1C #1C7D5B
square
#2B1C7D #7D1C3E #6E7D1C #1C7D5B
split-complementary
#2B1C7D #7D5B1C #3E7D1C
monochromatic
#090619 #1A114B #2B1C7D #3C27AF #563FD4

Accessibility & contrast

On white

13.42
#2B1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1C7D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C7D#FFFFFF#000000##FFFFFF
##2B1C7D1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1c7d;
/* rgb */ color: rgb(43, 28, 125);
/* oklch */ color: oklch(32.1% 0.153 280.4);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2b1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c7d;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c7d",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 249.278,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.32056,
    "c": 0.15303,
    "h": 280.4
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#2B1C7D
secondary
#A0B144
accent
#E641CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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