#2B1796#2B1796

#2B1796 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.3% C 0.188 H 277.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2B1796
RGBrgb(43, 23, 150)
HSLhsl(249, 73%, 34%)
HSVhsv(249, 85%, 59%)
CMYKcmyk(71.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.31, 46.80, -64.54)
CIE-LCHlch(21.31, 79.73, 305.95°)
OKLaboklab(34.28% 0.0229 -0.1865)
OKLCHoklch(34.28% 0.188 277)
XYZxyz(6.8059, 3.3278, 29.1319)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1796 #829617
analogous
#174396 #2B1796 #6B1796
triadic
#2B1796 #962B17 #17962B
tetradic
#2B1796 #961743 #829617 #17966B
square
#2B1796 #961743 #829617 #17966B
split-complementary
#2B1796 #966B17 #439617
monochromatic
#0D072C #1C0F61 #2B1796 #3A1FCB #5E45E2

Accessibility & contrast

On white

12.61
#2B1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1796
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1796#FFFFFF#000000##FFFFFF
##2B17961.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1796;
/* rgb */ color: rgb(43, 23, 150);
/* oklch */ color: oklch(34.3% 0.188 277.0);
Tailwind
colors: {
  custom: {
    50: '#7659b6',
    500: '#2b1796',
    950: '#000000',
  },
}
SCSS
$custom: #2b1796;
$custom-light: #7659b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1796",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 249.449,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.18788,
    "h": 277
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#2B1796
secondary
#B0C345
accent
#F038D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1796

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

Preview Lab → · Contrast checker → · Palette generator →

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