#2A1993#2A1993

#2A1993 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.183 H 276.8°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2A1993
RGBrgb(42, 25, 147)
HSLhsl(248, 71%, 34%)
HSVhsv(248, 83%, 58%)
CMYKcmyk(71.4%, 83%, 0%, 42.4%)
CIE-LABlab(21.18, 44.90, -62.90)
CIE-LCHlch(21.18, 77.29, 305.52°)
OKLaboklab(34.06% 0.0215 -0.1818)
OKLCHoklch(34.06% 0.183 276.8)
XYZxyz(6.5672, 3.2935, 27.8877)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1993 #829319
analogous
#194593 #2A1993 #671993
triadic
#2A1993 #932A19 #19932A
tetradic
#2A1993 #931945 #829319 #199367
square
#2A1993 #931945 #829319 #199367
split-complementary
#2A1993 #936719 #459319
monochromatic
#0C072A #1B105F #2A1993 #3922C7 #5C47E0

Accessibility & contrast

On white

12.66
#2A1993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1993
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1993#FFFFFF#000000##FFFFFF
##2A19931.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1993;
/* rgb */ color: rgb(42, 25, 147);
/* oklch */ color: oklch(34.1% 0.183 276.8);
Tailwind
colors: {
  custom: {
    50: '#755ab4',
    500: '#2a1993',
    950: '#000000',
  },
}
SCSS
$custom: #2a1993;
$custom-light: #755ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1993",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 147
  },
  "hsl": {
    "h": 248.361,
    "s": 70.93,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.18305,
    "h": 276.8
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#2A1993
secondary
#B0C147
accent
#EE3AD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1993

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

Preview Lab → · Contrast checker → · Palette generator →

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