#2B1EA7#2B1EA7

#2B1EA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.202 H 274.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2B1EA7
RGBrgb(43, 30, 167)
HSLhsl(246, 70%, 39%)
HSVhsv(246, 82%, 65%)
CMYKcmyk(74.3%, 82%, 0%, 34.5%)
CIE-LABlab(24.42, 48.78, -69.78)
CIE-LCHlch(24.42, 85.14, 304.96°)
OKLaboklab(37.01% 0.0154 -0.2018)
OKLCHoklch(37.01% 0.202 274.4)
XYZxyz(8.4333, 4.2313, 36.9240)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1EA7 #9AA71E
analogous
#1E56A7 #2B1EA7 #6F1EA7
triadic
#2B1EA7 #A72B1E #1EA72B
tetradic
#2B1EA7 #A71E56 #9AA71E #1EA76F
square
#2B1EA7 #A71E56 #9AA71E #1EA76F
split-complementary
#2B1EA7 #A76F1E #56A71E
monochromatic
#100B3F #1E1573 #2B1EA7 #3A2AD9 #6A5DE2

Accessibility & contrast

On white

11.37
#2B1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1EA7
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1EA7#FFFFFF#000000##FFFFFF
##2B1EA71.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1ea7;
/* rgb */ color: rgb(43, 30, 167);
/* oklch */ color: oklch(37.0% 0.202 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2b1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ea7;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ea7",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 245.693,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37008,
    "c": 0.20237,
    "h": 274.4
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#2B1EA7
secondary
#BCC65B
accent
#EC3BDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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