#2B1B85#2B1B85

#2B1B85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.164 H 279.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2B1B85
RGBrgb(43, 27, 133)
HSLhsl(249, 66%, 31%)
HSVhsv(249, 80%, 52%)
CMYKcmyk(67.7%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.01, 39.60, -56.11)
CIE-LCHlch(20.01, 68.67, 305.22°)
OKLaboklab(32.79% 0.0261 -0.162)
OKLCHoklch(32.79% 0.164 279.2)
XYZxyz(5.6205, 2.9904, 22.4668)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B85 #75851B
analogous
#1B4085 #2B1B85 #601B85
triadic
#2B1B85 #852B1B #1B852B
tetradic
#2B1B85 #851B40 #75851B #1B8560
square
#2B1B85 #851B40 #75851B #1B8560
split-complementary
#2B1B85 #85601B #40851B
monochromatic
#0A061F #1B1152 #2B1B85 #3B25B8 #5942D9

Accessibility & contrast

On white

13.14
#2B1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B85
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B85#FFFFFF#000000##FFFFFF
##2B1B851.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1b85;
/* rgb */ color: rgb(43, 27, 133);
/* oklch */ color: oklch(32.8% 0.164 279.2);
Tailwind
colors: {
  custom: {
    50: '#725aaa',
    500: '#2b1b85',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b85;
$custom-light: #725aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b85",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 249.057,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.1641,
    "h": 279.2
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#2B1B85
secondary
#A7B844
accent
#E93FCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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