#2A1B7C#2A1B7C

#2A1B7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.153 H 280.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2A1B7C
RGBrgb(42, 27, 124)
HSLhsl(249, 64%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(66.1%, 78.2%, 0%, 51.4%)
CIE-LABlab(18.93, 36.57, -52.18)
CIE-LCHlch(18.93, 63.72, 305.03°)
OKLaboklab(31.72% 0.027 -0.1506)
OKLCHoklch(31.72% 0.153 280.2)
XYZxyz(4.9837, 2.7310, 19.3294)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B7C #6D7C1B
analogous
#1B3D7C #2A1B7C #5A1B7C
triadic
#2A1B7C #7C2A1B #1B7C2A
tetradic
#2A1B7C #7C1B3D #6D7C1B #1B7C5A
square
#2A1B7C #7C1B3D #6D7C1B #1B7C5A
split-complementary
#2A1B7C #7C5A1B #3D7C1B
monochromatic
#090519 #19104A #2A1B7C #3B26AE #543DD5

Accessibility & contrast

On white

13.58
#2A1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B7C
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B7C#FFFFFF#000000##FFFFFF
##2A1B7C1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1b7c;
/* rgb */ color: rgb(42, 27, 124);
/* oklch */ color: oklch(31.7% 0.153 280.2);
Tailwind
colors: {
  custom: {
    50: '#705aa3',
    500: '#2a1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b7c;
$custom-light: #705aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b7c",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 249.278,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31724,
    "c": 0.153,
    "h": 280.2
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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