#2A1C9F#2A1C9F

#2A1C9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.195 H 275.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1C9F
RGBrgb(42, 28, 159)
HSLhsl(246, 70%, 37%)
HSVhsv(246, 82%, 62%)
CMYKcmyk(73.6%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.08, 47.18, -67.13)
CIE-LCHlch(23.08, 82.06, 305.10°)
OKLaboklab(35.79% 0.0169 -0.1941)
OKLCHoklch(35.79% 0.195 275)
XYZxyz(7.6260, 3.8252, 33.1306)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C9F #919F1C
analogous
#1C509F #2A1C9F #6C1C9F
triadic
#2A1C9F #9F2A1C #1C9F2A
tetradic
#2A1C9F #9F1C50 #919F1C #1C9F6C
square
#2A1C9F #9F1C50 #919F1C #1C9F6C
split-complementary
#2A1C9F #9F6C1C #509F1C
monochromatic
#0F0A37 #1C136B #2A1C9F #3825D3 #6354E1

Accessibility & contrast

On white

11.90
#2A1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C9F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C9F#FFFFFF#000000##FFFFFF
##2A1C9F1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1c9f;
/* rgb */ color: rgb(42, 28, 159);
/* oklch */ color: oklch(35.8% 0.195 275.0);
Tailwind
colors: {
  custom: {
    50: '#785dbd',
    500: '#2a1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c9f;
$custom-light: #785dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c9f",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 246.412,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.19483,
    "h": 275
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#2A1C9F
secondary
#B8C453
accent
#ED3BDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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