#2B1F83#2B1F83

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

Color values

HEX#2B1F83
RGBrgb(43, 31, 131)
HSLhsl(247, 62%, 32%)
HSVhsv(247, 76%, 51%)
CMYKcmyk(67.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.56, 36.74, -53.92)
CIE-LCHlch(20.56, 65.25, 304.27°)
OKLaboklab(33.12% 0.0241 -0.1557)
OKLCHoklch(33.12% 0.158 278.8)
XYZxyz(5.5817, 3.1318, 21.7787)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F83 #77831F
analogous
#1F4583 #2B1F83 #5D1F83
triadic
#2B1F83 #832B1F #1F832B
tetradic
#2B1F83 #831F45 #77831F #1F835D
square
#2B1F83 #831F45 #77831F #1F835D
split-complementary
#2B1F83 #835D1F #45831F
monochromatic
#0B0820 #1B1352 #2B1F83 #3B2BB4 #5949D4

Accessibility & contrast

On white

12.91
#2B1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F83
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F83#FFFFFF#000000##FFFFFF
##2B1F831.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1f83;
/* rgb */ color: rgb(43, 31, 131);
/* oklch */ color: oklch(33.1% 0.158 278.8);
Tailwind
colors: {
  custom: {
    50: '#715da8',
    500: '#2b1f83',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f83;
$custom-light: #715da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f83",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 247.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33121,
    "c": 0.15755,
    "h": 278.8
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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