#2A1CB3#2A1CB3

#2A1CB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.218 H 273.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2A1CB3
RGBrgb(42, 28, 179)
HSLhsl(246, 73%, 41%)
HSVhsv(246, 84%, 70%)
CMYKcmyk(76.5%, 84.4%, 0%, 29.8%)
CIE-LABlab(25.49, 53.23, -75.22)
CIE-LCHlch(25.49, 92.15, 305.28°)
OKLaboklab(38.14% 0.0114 -0.2175)
OKLCHoklch(38.14% 0.218 273)
XYZxyz(9.5041, 4.5764, 43.0215)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CB3 #A5B31C
analogous
#1C59B3 #2A1CB3 #751CB3
triadic
#2A1CB3 #B32A1C #1CB32A
tetradic
#2A1CB3 #B31C59 #A5B31C #1CB375
square
#2A1CB3 #B31C59 #A5B31C #1CB375
split-complementary
#2A1CB3 #B3751C #59B31C
monochromatic
#110B49 #1E147E #2A1CB3 #3E2EDE #6F63E7

Accessibility & contrast

On white

10.96
#2A1CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A1CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CB3
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CB3#FFFFFF#000000##FFFFFF
##2A1CB31.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1cb3;
/* rgb */ color: rgb(42, 28, 179);
/* oklch */ color: oklch(38.1% 0.218 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ecb',
    500: '#2a1cb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1cb3;
$custom-light: #7c5ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1cb3",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 245.563,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.21784,
    "h": 273
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#2A1CB3
secondary
#C1CB5F
accent
#F038DF
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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