#2B1CA7#2B1CA7

#2B1CA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.8% C 0.204 H 274.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2B1CA7
RGBrgb(43, 28, 167)
HSLhsl(246, 71%, 38%)
HSVhsv(246, 83%, 65%)
CMYKcmyk(74.3%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.11, 49.70, -70.30)
CIE-LCHlch(24.11, 86.09, 305.26°)
OKLaboklab(36.79% 0.016 -0.2033)
OKLCHoklch(36.79% 0.204 274.5)
XYZxyz(8.3843, 4.1333, 36.9077)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1CA7 #98A71C
analogous
#1C52A7 #2B1CA7 #701CA7
triadic
#2B1CA7 #A72B1C #1CA72B
tetradic
#2B1CA7 #A71C52 #98A71C #1CA770
square
#2B1CA7 #A71C52 #98A71C #1CA770
split-complementary
#2B1CA7 #A7701C #52A71C
monochromatic
#100A3E #1E1373 #2B1CA7 #3926DB #695AE3

Accessibility & contrast

On white

11.50
#2B1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1CA7
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1CA7#FFFFFF#000000##FFFFFF
##2B1CA71.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0033A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b1ca7;
/* rgb */ color: rgb(43, 28, 167);
/* oklch */ color: oklch(36.8% 0.204 274.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dc3',
    500: '#2b1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ca7;
$custom-light: #7a5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ca7",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 246.475,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36791,
    "c": 0.2039,
    "h": 274.5
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#2B1CA7
secondary
#BBC758
accent
#EE3ADB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2B1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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