#2B1D85#2B1D85

#2B1D85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.162 H 278.8°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2B1D85
RGBrgb(43, 29, 133)
HSLhsl(248, 64%, 32%)
HSVhsv(248, 78%, 52%)
CMYKcmyk(67.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.38, 38.52, -55.48)
CIE-LCHlch(20.38, 67.55, 304.77°)
OKLaboklab(33.06% 0.0249 -0.1602)
OKLCHoklch(33.06% 0.162 278.8)
XYZxyz(5.6679, 3.0853, 22.4826)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D85 #77851D
analogous
#1D4385 #2B1D85 #5F1D85
triadic
#2B1D85 #852B1D #1D852B
tetradic
#2B1D85 #851D43 #77851D #1D855F
square
#2B1D85 #851D43 #77851D #1D855F
split-complementary
#2B1D85 #855F1D #43851D
monochromatic
#0B0721 #1B1253 #2B1D85 #3B28B7 #5946D7

Accessibility & contrast

On white

12.99
#2B1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D85
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D85#FFFFFF#000000##FFFFFF
##2B1D851.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1d85;
/* rgb */ color: rgb(43, 29, 133);
/* oklch */ color: oklch(33.1% 0.162 278.8);
Tailwind
colors: {
  custom: {
    50: '#725baa',
    500: '#2b1d85',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d85;
$custom-light: #725baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d85",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 248.077,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.16214,
    "h": 278.8
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#2B1D85
secondary
#A9B846
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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