#2B1EA6#2B1EA6

#2B1EA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.201 H 274.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1EA6
RGBrgb(43, 30, 166)
HSLhsl(246, 69%, 38%)
HSVhsv(246, 82%, 65%)
CMYKcmyk(74.1%, 81.9%, 0%, 34.9%)
CIE-LABlab(24.30, 48.47, -69.37)
CIE-LCHlch(24.30, 84.62, 304.94°)
OKLaboklab(36.89% 0.0156 -0.2006)
OKLCHoklch(36.89% 0.201 274.5)
XYZxyz(8.3412, 4.1945, 36.4390)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1EA6 #99A61E
analogous
#1E55A6 #2B1EA6 #6F1EA6
triadic
#2B1EA6 #A62B1E #1EA62B
tetradic
#2B1EA6 #A61E55 #99A61E #1EA66F
square
#2B1EA6 #A61E55 #99A61E #1EA66F
split-complementary
#2B1EA6 #A66F1E #55A61E
monochromatic
#100B3E #1E1572 #2B1EA6 #3A29D8 #695DE2

Accessibility & contrast

On white

11.42
#2B1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1EA6
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1EA6#FFFFFF#000000##FFFFFF
##2B1EA61.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1ea6;
/* rgb */ color: rgb(43, 30, 166);
/* oklch */ color: oklch(36.9% 0.201 274.5);
Tailwind
colors: {
  custom: {
    50: '#795ec2',
    500: '#2b1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ea6;
$custom-light: #795ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ea6",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 245.735,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36893,
    "c": 0.20121,
    "h": 274.5
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#2B1EA6
secondary
#BCC65A
accent
#EC3CDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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