#2B1C79#2B1C79

#2B1C79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.148 H 281.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2B1C79
RGBrgb(43, 28, 121)
HSLhsl(250, 62%, 29%)
HSVhsv(250, 77%, 47%)
CMYKcmyk(64.5%, 76.9%, 0%, 52.5%)
CIE-LABlab(18.90, 35.16, -50.30)
CIE-LCHlch(18.90, 61.37, 304.95°)
OKLaboklab(31.63% 0.0286 -0.1451)
OKLCHoklch(31.63% 0.148 281.2)
XYZxyz(4.8616, 2.7242, 18.3551)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C79 #6A791C
analogous
#1C3C79 #2B1C79 #5A1C79
triadic
#2B1C79 #792B1C #1C792B
tetradic
#2B1C79 #791C3C #6A791C #1C795A
square
#2B1C79 #791C3C #6A791C #1C795A
split-complementary
#2B1C79 #795A1C #3C791C
monochromatic
#090619 #191047 #2B1C79 #3D28AB #553DD2

Accessibility & contrast

On white

13.59
#2B1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C79
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C79#FFFFFF#000000##FFFFFF
##2B1C791.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1c79;
/* rgb */ color: rgb(43, 28, 121);
/* oklch */ color: oklch(31.6% 0.148 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#2b1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c79;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c79",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 249.677,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31631,
    "c": 0.1479,
    "h": 281.2
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#2B1C79
secondary
#9CAD44
accent
#E542CB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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