#2A1D9F#2A1D9F

#2A1D9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.194 H 274.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2A1D9F
RGBrgb(42, 29, 159)
HSLhsl(246, 69%, 37%)
HSVhsv(246, 82%, 62%)
CMYKcmyk(73.6%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.25, 46.71, -66.86)
CIE-LCHlch(23.25, 81.56, 304.94°)
OKLaboklab(35.9% 0.0165 -0.1933)
OKLCHoklch(35.9% 0.194 274.9)
XYZxyz(7.6502, 3.8734, 33.1386)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D9F #929F1D
analogous
#1D519F #2A1D9F #6B1D9F
triadic
#2A1D9F #9F2A1D #1D9F2A
tetradic
#2A1D9F #9F1D51 #929F1D #1D9F6B
square
#2A1D9F #9F1D51 #929F1D #1D9F6B
split-complementary
#2A1D9F #9F6B1D #519F1D
monochromatic
#0F0A37 #1C146B #2A1D9F #3826D3 #6456E0

Accessibility & contrast

On white

11.83
#2A1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D9F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D9F#FFFFFF#000000##FFFFFF
##2A1D9F1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1d9f;
/* rgb */ color: rgb(42, 29, 159);
/* oklch */ color: oklch(35.9% 0.194 274.9);
Tailwind
colors: {
  custom: {
    50: '#785dbd',
    500: '#2a1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d9f;
$custom-light: #785dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d9f",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 246,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.19404,
    "h": 274.9
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#2A1D9F
secondary
#B8C454
accent
#EC3CDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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