#2B1B98#2B1B98

#2B1B98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.187 H 276.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2B1B98
RGBrgb(43, 27, 152)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(71.7%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.17, 45.58, -64.35)
CIE-LCHlch(22.17, 78.85, 305.31°)
OKLaboklab(34.94% 0.0207 -0.186)
OKLCHoklch(34.94% 0.187 276.3)
XYZxyz(7.0538, 3.5638, 30.0158)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B98 #88981B
analogous
#1B4A98 #2B1B98 #691B98
triadic
#2B1B98 #982B1B #1B982B
tetradic
#2B1B98 #981B4A #88981B #1B9869
square
#2B1B98 #981B4A #88981B #1B9869
split-complementary
#2B1B98 #98691B #4A981B
monochromatic
#0E0930 #1C1264 #2B1B98 #3A24CC #614EE0

Accessibility & contrast

On white

12.26
#2B1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B98
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B98#FFFFFF#000000##FFFFFF
##2B1B981.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1b98;
/* rgb */ color: rgb(43, 27, 152);
/* oklch */ color: oklch(34.9% 0.187 276.3);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#2b1b98',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b98;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b98",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 247.68,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34939,
    "c": 0.18714,
    "h": 276.3
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#2B1B98
secondary
#B3C24D
accent
#ED3BD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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