#2B1D95#2B1D95

#2B1D95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.182 H 276.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2B1D95
RGBrgb(43, 29, 149)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 81%, 58%)
CMYKcmyk(71.1%, 80.5%, 0%, 41.6%)
CIE-LABlab(22.17, 43.66, -62.51)
CIE-LCHlch(22.17, 76.25, 304.93°)
OKLaboklab(34.83% 0.0206 -0.1807)
OKLCHoklch(34.83% 0.182 276.5)
XYZxyz(6.8587, 3.5616, 28.7540)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D95 #87951D
analogous
#1D4B95 #2B1D95 #671D95
triadic
#2B1D95 #952B1D #1D952B
tetradic
#2B1D95 #951D4B #87951D #1D9567
square
#2B1D95 #951D4B #87951D #1D9567
split-complementary
#2B1D95 #95671D #4B951D
monochromatic
#0D092F #1C1362 #2B1D95 #3A27C8 #6050DD

Accessibility & contrast

On white

12.26
#2B1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D95
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D95#FFFFFF#000000##FFFFFF
##2B1D951.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1d95;
/* rgb */ color: rgb(43, 29, 149);
/* oklch */ color: oklch(34.8% 0.182 276.5);
Tailwind
colors: {
  custom: {
    50: '#765cb5',
    500: '#2b1d95',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d95;
$custom-light: #765cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d95",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 247,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.18186,
    "h": 276.5
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#2B1D95
secondary
#B2C04E
accent
#EA3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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