#2B1E9B#2B1E9B

#2B1E9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.188 H 275.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2B1E9B
RGBrgb(43, 30, 155)
HSLhsl(246, 68%, 36%)
HSVhsv(246, 81%, 61%)
CMYKcmyk(72.3%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.03, 45.04, -64.78)
CIE-LCHlch(23.03, 78.90, 304.81°)
OKLaboklab(35.63% 0.0186 -0.1873)
OKLCHoklch(35.63% 0.188 275.7)
XYZxyz(7.3750, 3.8080, 31.3503)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E9B #8E9B1E
analogous
#1E509B #2B1E9B #6A1E9B
triadic
#2B1E9B #9B2B1E #1E9B2B
tetradic
#2B1E9B #9B1E50 #8E9B1E #1E9B6A
square
#2B1E9B #9B1E50 #8E9B1E #1E9B6A
split-complementary
#2B1E9B #9B6A1E #509B1E
monochromatic
#0F0A34 #1D1468 #2B1E9B #3928CE #6355DE

Accessibility & contrast

On white

11.92
#2B1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E9B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E9B#FFFFFF#000000##FFFFFF
##2B1E9B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1e9b;
/* rgb */ color: rgb(43, 30, 155);
/* oklch */ color: oklch(35.6% 0.188 275.7);
Tailwind
colors: {
  custom: {
    50: '#775dba',
    500: '#2b1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e9b;
$custom-light: #775dba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e9b",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 246.24,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.1882,
    "h": 275.7
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#2B1E9B
secondary
#B6C253
accent
#EA3DD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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