#2A1D9C#2A1D9C

#2A1D9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.190 H 275.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1D9C
RGBrgb(42, 29, 156)
HSLhsl(246, 69%, 36%)
HSVhsv(246, 81%, 61%)
CMYKcmyk(73.1%, 81.4%, 0%, 38.8%)
CIE-LABlab(22.90, 45.77, -65.61)
CIE-LCHlch(22.90, 80.00, 304.90°)
OKLaboklab(35.56% 0.0173 -0.1897)
OKLCHoklch(35.56% 0.19 275.2)
XYZxyz(7.3930, 3.7705, 31.7842)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D9C #8F9C1D
analogous
#1D509C #2A1D9C #6A1D9C
triadic
#2A1D9C #9C2A1D #1D9C2A
tetradic
#2A1D9C #9C1D50 #8F9C1D #1D9C6A
square
#2A1D9C #9C1D50 #8F9C1D #1D9C6A
split-complementary
#2A1D9C #9C6A1D #509C1D
monochromatic
#0E0A35 #1C1368 #2A1D9C #3827D0 #6254DF

Accessibility & contrast

On white

11.97
#2A1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D9C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D9C#FFFFFF#000000##FFFFFF
##2A1D9C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d9c;
/* rgb */ color: rgb(42, 29, 156);
/* oklch */ color: oklch(35.6% 0.190 275.2);
Tailwind
colors: {
  custom: {
    50: '#775dbb',
    500: '#2a1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d9c;
$custom-light: #775dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d9c",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 246.142,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35558,
    "c": 0.19048,
    "h": 275.2
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#2A1D9C
secondary
#B7C252
accent
#EB3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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