#2B1F96#2B1F96

#2B1F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.181 H 276.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2B1F96
RGBrgb(43, 31, 150)
HSLhsl(246, 66%, 35%)
HSVhsv(246, 79%, 59%)
CMYKcmyk(71.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.64, 42.94, -62.35)
CIE-LCHlch(22.64, 75.71, 304.56°)
OKLaboklab(35.19% 0.0194 -0.1802)
OKLCHoklch(35.19% 0.181 276.2)
XYZxyz(6.9895, 3.6949, 29.1931)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F96 #8A961F
analogous
#1F4F96 #2B1F96 #661F96
triadic
#2B1F96 #962B1F #1F962B
tetradic
#2B1F96 #961F4F #8A961F #1F9666
square
#2B1F96 #961F4F #8A961F #1F9666
split-complementary
#2B1F96 #96661F #4F961F
monochromatic
#0E0A31 #1C1563 #2B1F96 #3A29C9 #6154DC

Accessibility & contrast

On white

12.07
#2B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F96
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F96#FFFFFF#000000##FFFFFF
##2B1F961.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1f96;
/* rgb */ color: rgb(43, 31, 150);
/* oklch */ color: oklch(35.2% 0.181 276.2);
Tailwind
colors: {
  custom: {
    50: '#765eb6',
    500: '#2b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f96;
$custom-light: #765eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f96",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 246.05,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.18129,
    "h": 276.2
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#2B1F96
secondary
#B4BF52
accent
#E93FD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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