#2B1B90#2B1B90

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

Color values

HEX#2B1B90
RGBrgb(43, 27, 144)
HSLhsl(248, 68%, 34%)
HSVhsv(248, 81%, 56%)
CMYKcmyk(70.1%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.25, 43.09, -60.93)
CIE-LCHlch(21.25, 74.63, 305.26°)
OKLaboklab(34.03% 0.023 -0.1761)
OKLCHoklch(34.03% 0.178 277.4)
XYZxyz(6.4206, 3.3105, 26.6808)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B90 #80901B
analogous
#1B4590 #2B1B90 #651B90
triadic
#2B1B90 #902B1B #1B902B
tetradic
#2B1B90 #901B45 #80901B #1B9065
square
#2B1B90 #901B45 #80901B #1B9065
split-complementary
#2B1B90 #90651B #45901B
monochromatic
#0C0829 #1C115C #2B1B90 #3A25C4 #5D49DD

Accessibility & contrast

On white

12.63
#2B1B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B90
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B90#FFFFFF#000000##FFFFFF
##2B1B901.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1b90;
/* rgb */ color: rgb(43, 27, 144);
/* oklch */ color: oklch(34.0% 0.178 277.4);
Tailwind
colors: {
  custom: {
    50: '#755bb2',
    500: '#2b1b90',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b90;
$custom-light: #755bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b90",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 248.205,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34025,
    "c": 0.17756,
    "h": 277.4
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#2B1B90
secondary
#AEBF48
accent
#EB3DD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B90

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

Preview Lab → · Contrast checker → · Palette generator →

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