#2A1B9F#2A1B9F

#2A1B9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.196 H 275.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2A1B9F
RGBrgb(42, 27, 159)
HSLhsl(247, 71%, 36%)
HSVhsv(247, 83%, 62%)
CMYKcmyk(73.6%, 83%, 0%, 37.6%)
CIE-LABlab(22.93, 47.65, -67.40)
CIE-LCHlch(22.93, 82.54, 305.26°)
OKLaboklab(35.68% 0.0173 -0.1948)
OKLCHoklch(35.68% 0.196 275.1)
XYZxyz(7.6027, 3.7786, 33.1228)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B9F #909F1B
analogous
#1B4E9F #2A1B9F #6C1B9F
triadic
#2A1B9F #9F2A1B #1B9F2A
tetradic
#2A1B9F #9F1B4E #909F1B #1B9F6C
square
#2A1B9F #9F1B4E #909F1B #1B9F6C
split-complementary
#2A1B9F #9F6C1B #4E9F1B
monochromatic
#0E0936 #1C126B #2A1B9F #3824D3 #6353E2

Accessibility & contrast

On white

11.96
#2A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B9F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B9F#FFFFFF#000000##FFFFFF
##2A1B9F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1b9f;
/* rgb */ color: rgb(42, 27, 159);
/* oklch */ color: oklch(35.7% 0.196 275.1);
Tailwind
colors: {
  custom: {
    50: '#785cbd',
    500: '#2a1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b9f;
$custom-light: #785cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b9f",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 246.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3568,
    "c": 0.19561,
    "h": 275.1
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#2A1B9F
secondary
#B7C551
accent
#EE3AD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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