#2B1B95#2B1B95

#2B1B95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.184 H 276.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2B1B95
RGBrgb(43, 27, 149)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(71.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.82, 44.65, -63.08)
CIE-LCHlch(21.82, 77.28, 305.29°)
OKLaboklab(34.6% 0.0215 -0.1823)
OKLCHoklch(34.6% 0.184 276.7)
XYZxyz(6.8112, 3.4668, 28.7381)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B95 #85951B
analogous
#1B4895 #2B1B95 #681B95
triadic
#2B1B95 #952B1B #1B952B
tetradic
#2B1B95 #951B48 #85951B #1B9568
square
#2B1B95 #951B48 #85951B #1B9568
split-complementary
#2B1B95 #95681B #48951B
monochromatic
#0D082D #1C1261 #2B1B95 #3A24C9 #5F4CDF

Accessibility & contrast

On white

12.40
#2B1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B95
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B95#FFFFFF#000000##FFFFFF
##2B1B951.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1b95;
/* rgb */ color: rgb(43, 27, 149);
/* oklch */ color: oklch(34.6% 0.184 276.7);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2b1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b95;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b95",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 247.869,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34595,
    "c": 0.18356,
    "h": 276.7
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#2B1B95
secondary
#B1C14B
accent
#EC3CD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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