#2A1B7B#2A1B7B

#2A1B7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.152 H 280.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2A1B7B
RGBrgb(42, 27, 123)
HSLhsl(249, 64%, 29%)
HSVhsv(249, 78%, 48%)
CMYKcmyk(65.9%, 78%, 0%, 51.8%)
CIE-LABlab(18.82, 36.25, -51.72)
CIE-LCHlch(18.82, 63.15, 305.03°)
OKLaboklab(31.62% 0.0273 -0.1492)
OKLCHoklch(31.62% 0.152 280.4)
XYZxyz(4.9208, 2.7058, 18.9980)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B7B #6C7B1B
analogous
#1B3C7B #2A1B7B #5A1B7B
triadic
#2A1B7B #7B2A1B #1B7B2A
tetradic
#2A1B7B #7B1B3C #6C7B1B #1B7B5A
square
#2A1B7B #7B1B3C #6C7B1B #1B7B5A
split-complementary
#2A1B7B #7B5A1B #3C7B1B
monochromatic
#090619 #191049 #2A1B7B #3B26AD #543CD4

Accessibility & contrast

On white

13.63
#2A1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B7B
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B7B#FFFFFF#000000##FFFFFF
##2A1B7B1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1b7b;
/* rgb */ color: rgb(42, 27, 123);
/* oklch */ color: oklch(31.6% 0.152 280.4);
Tailwind
colors: {
  custom: {
    50: '#6f5aa2',
    500: '#2a1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b7b;
$custom-light: #6f5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b7b",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 249.375,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31616,
    "c": 0.15171,
    "h": 280.4
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#2A1B7B
secondary
#9EAF43
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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