#2A1E92#2A1E92

#2A1E92 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.178 H 276.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1E92
RGBrgb(42, 30, 146)
HSLhsl(246, 66%, 35%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(71.2%, 79.5%, 0%, 42.7%)
CIE-LABlab(21.93, 42.09, -61.05)
CIE-LCHlch(21.93, 74.15, 304.58°)
OKLaboklab(34.55% 0.0196 -0.1765)
OKLCHoklch(34.55% 0.178 276.3)
XYZxyz(6.6057, 3.4955, 27.5151)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E92 #86921E
analogous
#1E4C92 #2A1E92 #641E92
triadic
#2A1E92 #922A1E #1E922A
tetradic
#2A1E92 #921E4C #86921E #1E9264
square
#2A1E92 #921E4C #86921E #1E9264
split-complementary
#2A1E92 #92641E #4C921E
monochromatic
#0D092C #1B145F #2A1E92 #3928C5 #5E4FDB

Accessibility & contrast

On white

12.36
#2A1E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E92
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E92#FFFFFF#000000##FFFFFF
##2A1E921.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1e92;
/* rgb */ color: rgb(42, 30, 146);
/* oklch */ color: oklch(34.5% 0.178 276.3);
Tailwind
colors: {
  custom: {
    50: '#745db3',
    500: '#2a1e92',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e92;
$custom-light: #745db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e92",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 146
  },
  "hsl": {
    "h": 246.207,
    "s": 65.909,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34547,
    "c": 0.17755,
    "h": 276.3
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#2A1E92
secondary
#B2BE4E
accent
#E93FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1E92

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

Preview Lab → · Contrast checker → · Palette generator →

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