#2B1794#2B1794

#2B1794 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.186 H 277.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2B1794
RGBrgb(43, 23, 148)
HSLhsl(250, 73%, 34%)
HSVhsv(250, 84%, 58%)
CMYKcmyk(70.9%, 84.5%, 0%, 42%)
CIE-LABlab(21.07, 46.20, -63.71)
CIE-LCHlch(21.07, 78.70, 305.95°)
OKLaboklab(34.04% 0.0235 -0.1841)
OKLCHoklch(34.04% 0.186 277.3)
XYZxyz(6.6462, 3.2639, 28.2910)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1794 #809417
analogous
#174194 #2B1794 #691794
triadic
#2B1794 #942B17 #17942B
tetradic
#2B1794 #941741 #809417 #179469
square
#2B1794 #941741 #809417 #179469
split-complementary
#2B1794 #946917 #419417
monochromatic
#0C072A #1C0F5F #2B1794 #3A1FC9 #5D44E2

Accessibility & contrast

On white

12.70
#2B1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1794
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1794#FFFFFF#000000##FFFFFF
##2B17941.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1794;
/* rgb */ color: rgb(43, 23, 148);
/* oklch */ color: oklch(34.0% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#7659b5',
    500: '#2b1794',
    950: '#000000',
  },
}
SCSS
$custom: #2b1794;
$custom-light: #7659b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1794",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 249.6,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.18555,
    "h": 277.3
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#2B1794
secondary
#AEC344
accent
#F038D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1794

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

Preview Lab → · Contrast checker → · Palette generator →

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