#2B1A94#2B1A94

#2B1A94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.183 H 277.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2B1A94
RGBrgb(43, 26, 148)
HSLhsl(248, 70%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.9%, 82.4%, 0%, 42%)
CIE-LABlab(21.54, 44.82, -62.93)
CIE-LCHlch(21.54, 77.26, 305.46°)
OKLaboklab(34.37% 0.0223 -0.1818)
OKLCHoklch(34.37% 0.183 277)
XYZxyz(6.7092, 3.3899, 28.3120)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A94 #83941A
analogous
#1A4694 #2B1A94 #681A94
triadic
#2B1A94 #942B1A #1A942B
tetradic
#2B1A94 #941A46 #83941A #1A9468
square
#2B1A94 #941A46 #83941A #1A9468
split-complementary
#2B1A94 #94681A #46941A
monochromatic
#0D082C #1C1160 #2B1A94 #3A23C8 #5E49DF

Accessibility & contrast

On white

12.51
#2B1A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A94
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A94#FFFFFF#000000##FFFFFF
##2B1A941.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1a94;
/* rgb */ color: rgb(43, 26, 148);
/* oklch */ color: oklch(34.4% 0.183 277.0);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2b1a94',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a94;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a94",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 248.361,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34365,
    "c": 0.1832,
    "h": 277
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1A94

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

Preview Lab → · Contrast checker → · Palette generator →

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