#2A1E95#2A1E95

#2A1E95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.181 H 275.9°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1E95
RGBrgb(42, 30, 149)
HSLhsl(246, 66%, 35%)
HSVhsv(246, 80%, 58%)
CMYKcmyk(71.8%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.27, 43.05, -62.35)
CIE-LCHlch(22.27, 75.77, 304.63°)
OKLaboklab(34.88% 0.0188 -0.1802)
OKLCHoklch(34.88% 0.181 275.9)
XYZxyz(6.8422, 3.5901, 28.7603)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E95 #89951E
analogous
#1E4E95 #2A1E95 #651E95
triadic
#2A1E95 #952A1E #1E952A
tetradic
#2A1E95 #951E4E #89951E #1E9565
square
#2A1E95 #951E4E #89951E #1E9565
split-complementary
#2A1E95 #95651E #4E951E
monochromatic
#0D092F #1C1462 #2A1E95 #3828C8 #5F51DC

Accessibility & contrast

On white

12.22
#2A1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E95
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E95#FFFFFF#000000##FFFFFF
##2A1E951.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1e95;
/* rgb */ color: rgb(42, 30, 149);
/* oklch */ color: oklch(34.9% 0.181 275.9);
Tailwind
colors: {
  custom: {
    50: '#755db5',
    500: '#2a1e95',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e95;
$custom-light: #755db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e95",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 246.05,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.18122,
    "h": 275.9
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#2A1E95
secondary
#B4BF50
accent
#E93ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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