#2B1E79#2B1E79

#2B1E79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.146 H 280.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1E79
RGBrgb(43, 30, 121)
HSLhsl(249, 60%, 30%)
HSVhsv(249, 75%, 47%)
CMYKcmyk(64.5%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.32, 33.99, -49.62)
CIE-LCHlch(19.32, 60.15, 304.41°)
OKLaboklab(31.92% 0.0271 -0.1431)
OKLCHoklch(31.92% 0.146 280.7)
XYZxyz(4.9106, 2.8222, 18.3714)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E79 #6C791E
analogous
#1E3F79 #2B1E79 #581E79
triadic
#2B1E79 #792B1E #1E792B
tetradic
#2B1E79 #791E3F #6C791E #1E7958
square
#2B1E79 #791E3F #6C791E #1E7958
split-complementary
#2B1E79 #79581E #3F791E
monochromatic
#090619 #1A1248 #2B1E79 #3C2AAA #5641D0

Accessibility & contrast

On white

13.42
#2B1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E79
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E79#FFFFFF#000000##FFFFFF
##2B1E791.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1e79;
/* rgb */ color: rgb(43, 30, 121);
/* oklch */ color: oklch(31.9% 0.146 280.7);
Tailwind
colors: {
  custom: {
    50: '#6f5ba1',
    500: '#2b1e79',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e79;
$custom-light: #6f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e79",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 248.571,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31924,
    "c": 0.14567,
    "h": 280.7
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#2B1E79
secondary
#9EAD46
accent
#E344CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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