#2B1D9E#2B1D9E

#2B1D9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.193 H 275.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2B1D9E
RGBrgb(43, 29, 158)
HSLhsl(247, 69%, 37%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(72.8%, 81.6%, 0%, 38%)
CIE-LABlab(23.20, 46.48, -66.32)
CIE-LCHlch(23.20, 80.98, 305.02°)
OKLaboklab(35.86% 0.0182 -0.1917)
OKLCHoklch(35.86% 0.193 275.4)
XYZxyz(7.6052, 3.8602, 32.6854)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D9E #909E1D
analogous
#1D4F9E #2B1D9E #6C1D9E
triadic
#2B1D9E #9E2B1D #1D9E2B
tetradic
#2B1D9E #9E1D4F #909E1D #1D9E6C
square
#2B1D9E #9E1D4F #909E1D #1D9E6C
split-complementary
#2B1D9E #9E6C1D #4F9E1D
monochromatic
#0F0A37 #1D146A #2B1D9E #3926D2 #6556E0

Accessibility & contrast

On white

11.85
#2B1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D9E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D9E#FFFFFF#000000##FFFFFF
##2B1D9E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1d9e;
/* rgb */ color: rgb(43, 29, 158);
/* oklch */ color: oklch(35.9% 0.193 275.4);
Tailwind
colors: {
  custom: {
    50: '#785dbc',
    500: '#2b1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d9e;
$custom-light: #785dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d9e",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 246.512,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.19261,
    "h": 275.4
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#2B1D9E
secondary
#B7C354
accent
#EC3CD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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