#2B1A95#2B1A95

#2B1A95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.184 H 276.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2B1A95
RGBrgb(43, 26, 149)
HSLhsl(248, 70%, 34%)
HSVhsv(248, 83%, 58%)
CMYKcmyk(71.1%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.66, 45.13, -63.35)
CIE-LCHlch(21.66, 77.78, 305.46°)
OKLaboklab(34.48% 0.022 -0.1831)
OKLCHoklch(34.48% 0.184 276.8)
XYZxyz(6.7887, 3.4217, 28.7306)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A95 #84951A
analogous
#1A4695 #2B1A95 #691A95
triadic
#2B1A95 #952B1A #1A952B
tetradic
#2B1A95 #951A46 #84951A #1A9569
square
#2B1A95 #951A46 #84951A #1A9569
split-complementary
#2B1A95 #95691A #46951A
monochromatic
#0D082D #1C1161 #2B1A95 #3A23C9 #5F4ADF

Accessibility & contrast

On white

12.47
#2B1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A95
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A95#FFFFFF#000000##FFFFFF
##2B1A951.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1a95;
/* rgb */ color: rgb(43, 26, 149);
/* oklch */ color: oklch(34.5% 0.184 276.8);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2b1a95',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a95;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a95",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 248.293,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34481,
    "c": 0.18438,
    "h": 276.8
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#2B1A95
secondary
#B1C14A
accent
#ED3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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