#2A1D9D#2A1D9D

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

Color values

HEX#2A1D9D
RGBrgb(42, 29, 157)
HSLhsl(246, 69%, 36%)
HSVhsv(246, 82%, 62%)
CMYKcmyk(73.2%, 81.5%, 0%, 38.4%)
CIE-LABlab(23.01, 46.08, -66.03)
CIE-LCHlch(23.01, 80.52, 304.91°)
OKLaboklab(35.67% 0.0171 -0.1909)
OKLCHoklch(35.67% 0.192 275.1)
XYZxyz(7.4780, 3.8046, 32.2320)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D9D #909D1D
analogous
#1D509D #2A1D9D #6A1D9D
triadic
#2A1D9D #9D2A1D #1D9D2A
tetradic
#2A1D9D #9D1D50 #909D1D #1D9D6A
square
#2A1D9D #9D1D50 #909D1D #1D9D6A
split-complementary
#2A1D9D #9D6A1D #509D1D
monochromatic
#0E0A36 #1C1369 #2A1D9D #3827D1 #6355E0

Accessibility & contrast

On white

11.93
#2A1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D9D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D9D#FFFFFF#000000##FFFFFF
##2A1D9D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d9d;
/* rgb */ color: rgb(42, 29, 157);
/* oklch */ color: oklch(35.7% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#775dbb',
    500: '#2a1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d9d;
$custom-light: #775dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d9d",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 246.094,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.19167,
    "h": 275.1
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#2A1D9D
secondary
#B7C353
accent
#EC3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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