#2A1E91#2A1E91

#2A1E91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.176 H 276.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1E91
RGBrgb(42, 30, 145)
HSLhsl(246, 66%, 34%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(71%, 79.3%, 0%, 43.1%)
CIE-LABlab(21.82, 41.77, -60.62)
CIE-LCHlch(21.82, 73.61, 304.57°)
OKLaboklab(34.44% 0.0198 -0.1752)
OKLCHoklch(34.44% 0.176 276.5)
XYZxyz(6.5283, 3.4645, 27.1073)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E91 #85911E
analogous
#1E4C91 #2A1E91 #641E91
triadic
#2A1E91 #912A1E #1E912A
tetradic
#2A1E91 #911E4C #85911E #1E9164
square
#2A1E91 #911E4C #85911E #1E9164
split-complementary
#2A1E91 #91641E #4C911E
monochromatic
#0D092C #1B145E #2A1E91 #3928C4 #5D4FDB

Accessibility & contrast

On white

12.40
#2A1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E91
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E91#FFFFFF#000000##FFFFFF
##2A1E911.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1e91;
/* rgb */ color: rgb(42, 30, 145);
/* oklch */ color: oklch(34.4% 0.176 276.5);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#2a1e91',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e91;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e91",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 246.261,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34435,
    "c": 0.17633,
    "h": 276.5
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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