#2A1E9D#2A1E9D

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

Color values

HEX#2A1E9D
RGBrgb(42, 30, 157)
HSLhsl(246, 68%, 37%)
HSVhsv(246, 81%, 62%)
CMYKcmyk(73.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.18, 45.59, -65.75)
CIE-LCHlch(23.18, 80.01, 304.74°)
OKLaboklab(35.79% 0.0167 -0.1901)
OKLCHoklch(35.79% 0.191 275)
XYZxyz(7.5029, 3.8544, 32.2403)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E9D #919D1E
analogous
#1E529D #2A1E9D #6A1E9D
triadic
#2A1E9D #9D2A1E #1E9D2A
tetradic
#2A1E9D #9D1E52 #919D1E #1E9D6A
square
#2A1E9D #9D1E52 #919D1E #1E9D6A
split-complementary
#2A1E9D #9D6A1E #529D1E
monochromatic
#0F0A36 #1C146A #2A1E9D #3828D0 #6357DF

Accessibility & contrast

On white

11.86
#2A1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E9D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E9D#FFFFFF#000000##FFFFFF
##2A1E9D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1e9d;
/* rgb */ color: rgb(42, 30, 157);
/* oklch */ color: oklch(35.8% 0.191 275.0);
Tailwind
colors: {
  custom: {
    50: '#775ebb',
    500: '#2a1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e9d;
$custom-light: #775ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e9d",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 245.669,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.19084,
    "h": 275
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#2A1E9D
secondary
#B8C254
accent
#EB3DDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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