#2B1F82#2B1F82

#2B1F82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.156 H 279.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2B1F82
RGBrgb(43, 31, 130)
HSLhsl(247, 61%, 32%)
HSVhsv(247, 76%, 51%)
CMYKcmyk(66.9%, 76.2%, 0%, 49%)
CIE-LABlab(20.46, 36.41, -53.47)
CIE-LCHlch(20.46, 64.69, 304.26°)
OKLaboklab(33.02% 0.0244 -0.1543)
OKLCHoklch(33.02% 0.156 279)
XYZxyz(5.5142, 3.1048, 21.4235)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F82 #76821F
analogous
#1F4582 #2B1F82 #5D1F82
triadic
#2B1F82 #822B1F #1F822B
tetradic
#2B1F82 #821F45 #76821F #1F825D
square
#2B1F82 #821F45 #76821F #1F825D
split-complementary
#2B1F82 #825D1F #45821F
monochromatic
#0A071F #1B1351 #2B1F82 #3B2BB3 #5948D3

Accessibility & contrast

On white

12.95
#2B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1F82
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F82#FFFFFF#000000##FFFFFF
##2B1F821.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1f82;
/* rgb */ color: rgb(43, 31, 130);
/* oklch */ color: oklch(33.0% 0.156 279.0);
Tailwind
colors: {
  custom: {
    50: '#715da7',
    500: '#2b1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f82;
$custom-light: #715da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f82",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 247.273,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33015,
    "c": 0.15626,
    "h": 279
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#2B1F82
secondary
#A8B548
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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