#2B1C94#2B1C94

#2B1C94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.182 H 276.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2B1C94
RGBrgb(43, 28, 148)
HSLhsl(248, 68%, 35%)
HSVhsv(248, 81%, 58%)
CMYKcmyk(70.9%, 81.1%, 0%, 42%)
CIE-LABlab(21.88, 43.84, -62.37)
CIE-LCHlch(21.88, 76.24, 305.11°)
OKLaboklab(34.6% 0.0214 -0.1802)
OKLCHoklch(34.6% 0.182 276.8)
XYZxyz(6.7551, 3.4816, 28.3273)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C94 #85941C
analogous
#1C4994 #2B1C94 #671C94
triadic
#2B1C94 #942B1C #1C942B
tetradic
#2B1C94 #941C49 #85941C #1C9467
square
#2B1C94 #941C49 #85941C #1C9467
split-complementary
#2B1C94 #94671C #49941C
monochromatic
#0D092D #1C1261 #2B1C94 #3A26C7 #5F4DDD

Accessibility & contrast

On white

12.38
#2B1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C94
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C94#FFFFFF#000000##FFFFFF
##2B1C941.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1c94;
/* rgb */ color: rgb(43, 28, 148);
/* oklch */ color: oklch(34.6% 0.182 276.8);
Tailwind
colors: {
  custom: {
    50: '#755cb5',
    500: '#2b1c94',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c94;
$custom-light: #755cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c94",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 247.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34598,
    "c": 0.18151,
    "h": 276.8
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#2B1C94
secondary
#B1C04C
accent
#EB3DD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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