#2B1EAC#2B1EAC

#2B1EAC is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.6% C 0.208 H 273.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2B1EAC
RGBrgb(43, 30, 172)
HSLhsl(245, 70%, 40%)
HSVhsv(245, 83%, 67%)
CMYKcmyk(75%, 82.6%, 0%, 32.5%)
CIE-LABlab(25.01, 50.31, -71.81)
CIE-LCHlch(25.01, 87.68, 305.01°)
OKLaboklab(37.59% 0.014 -0.2077)
OKLCHoklch(37.59% 0.208 273.9)
XYZxyz(8.9045, 4.4198, 39.4055)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1EAC #9FAC1E
analogous
#1E58AC #2B1EAC #721EAC
triadic
#2B1EAC #AC2B1E #1EAC2B
tetradic
#2B1EAC #AC1E58 #9FAC1E #1EAC72
square
#2B1EAC #AC1E58 #9FAC1E #1EAC72
split-complementary
#2B1EAC #AC721E #58AC1E
monochromatic
#110C44 #1E1578 #2B1EAC #3D2DDA #6D61E3

Accessibility & contrast

On white

11.15
#2B1EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2B1EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1EAC
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1EAC#FFFFFF#000000##FFFFFF
##2B1EAC1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b1eac;
/* rgb */ color: rgb(43, 30, 172);
/* oklch */ color: oklch(37.6% 0.208 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fc6',
    500: '#2b1eac',
    950: '#000000',
  },
}
SCSS
$custom: #2b1eac;
$custom-light: #7b5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1eac",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 245.493,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37589,
    "c": 0.20816,
    "h": 273.9
  },
  "luminance": 0.04421
}

Semantic roles & 50–950 ramp

primary
#2B1EAC
secondary
#BEC85E
accent
#ED3BDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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