#2A1693#2A1693

#2A1693 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.185 H 277.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2A1693
RGBrgb(42, 22, 147)
HSLhsl(250, 74%, 33%)
HSVhsv(250, 85%, 58%)
CMYKcmyk(71.4%, 85%, 0%, 42.4%)
CIE-LABlab(20.72, 46.26, -63.67)
CIE-LCHlch(20.72, 78.70, 306.00°)
OKLaboklab(33.74% 0.0227 -0.184)
OKLCHoklch(33.74% 0.185 277)
XYZxyz(6.5065, 3.1720, 27.8675)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1693 #7F9316
analogous
#164093 #2A1693 #681693
triadic
#2A1693 #932A16 #16932A
tetradic
#2A1693 #931640 #7F9316 #169368
square
#2A1693 #931640 #7F9316 #169368
split-complementary
#2A1693 #936816 #409316
monochromatic
#0C0629 #1B0E5E #2A1693 #391EC8 #5B41E3

Accessibility & contrast

On white

12.85
#2A1693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A1693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1693
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1693#FFFFFF#000000##FFFFFF
##2A16931.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002D91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1693;
/* rgb */ color: rgb(42, 22, 147);
/* oklch */ color: oklch(33.7% 0.185 277.0);
Tailwind
colors: {
  custom: {
    50: '#7559b4',
    500: '#2a1693',
    950: '#000000',
  },
}
SCSS
$custom: #2a1693;
$custom-light: #7559b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1693",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 249.6,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33743,
    "c": 0.18536,
    "h": 277
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#2A1693
secondary
#AEC342
accent
#F137D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1693

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

Preview Lab → · Contrast checker → · Palette generator →

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