#2B1D7A#2B1D7A

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

Color values

HEX#2B1D7A
RGBrgb(43, 29, 122)
HSLhsl(249, 62%, 30%)
HSVhsv(249, 76%, 48%)
CMYKcmyk(64.8%, 76.2%, 0%, 52.2%)
CIE-LABlab(19.21, 34.91, -50.44)
CIE-LCHlch(19.21, 61.34, 304.69°)
OKLaboklab(31.88% 0.0276 -0.1455)
OKLCHoklch(31.88% 0.148 280.8)
XYZxyz(4.9474, 2.7971, 18.6878)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D7A #6C7A1D
analogous
#1D3E7A #2B1D7A #591D7A
triadic
#2B1D7A #7A2B1D #1D7A2B
tetradic
#2B1D7A #7A1D3E #6C7A1D #1D7A59
square
#2B1D7A #7A1D3E #6C7A1D #1D7A59
split-complementary
#2B1D7A #7A591D #3E7A1D
monochromatic
#090619 #1A1149 #2B1D7A #3C29AB #5640D2

Accessibility & contrast

On white

13.47
#2B1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D7A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D7A#FFFFFF#000000##FFFFFF
##2B1D7A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d7a;
/* rgb */ color: rgb(43, 29, 122);
/* oklch */ color: oklch(31.9% 0.148 280.8);
Tailwind
colors: {
  custom: {
    50: '#6f5ba1',
    500: '#2b1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d7a;
$custom-light: #6f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d7a",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 249.032,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3188,
    "c": 0.14809,
    "h": 280.8
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#2B1D7A
secondary
#9EAE45
accent
#E543CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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