#2B1EA1#2B1EA1

#2B1EA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.195 H 275.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2B1EA1
RGBrgb(43, 30, 161)
HSLhsl(246, 69%, 37%)
HSVhsv(246, 81%, 63%)
CMYKcmyk(73.3%, 81.4%, 0%, 36.9%)
CIE-LABlab(23.72, 46.92, -67.30)
CIE-LCHlch(23.72, 82.04, 304.88°)
OKLaboklab(36.32% 0.017 -0.1946)
OKLCHoklch(36.32% 0.195 275)
XYZxyz(7.8914, 4.0146, 34.0703)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1EA1 #94A11E
analogous
#1E53A1 #2B1EA1 #6C1EA1
triadic
#2B1EA1 #A12B1E #1EA12B
tetradic
#2B1EA1 #A11E53 #94A11E #1EA16C
square
#2B1EA1 #A11E53 #94A11E #1EA16C
split-complementary
#2B1EA1 #A16C1E #53A11E
monochromatic
#0F0B3A #1D146D #2B1EA1 #3928D5 #6759E0

Accessibility & contrast

On white

11.65
#2B1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1EA1
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1EA1#FFFFFF#000000##FFFFFF
##2B1EA11.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1ea1;
/* rgb */ color: rgb(43, 30, 161);
/* oklch */ color: oklch(36.3% 0.195 275.0);
Tailwind
colors: {
  custom: {
    50: '#785ebe',
    500: '#2b1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ea1;
$custom-light: #785ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ea1",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 245.954,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36317,
    "c": 0.19534,
    "h": 275
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#2B1EA1
secondary
#B9C457
accent
#EB3CDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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