#2A1994#2A1994

#2A1994 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.184 H 276.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2A1994
RGBrgb(42, 25, 148)
HSLhsl(248, 71%, 34%)
HSVhsv(248, 83%, 58%)
CMYKcmyk(71.6%, 83.1%, 0%, 42%)
CIE-LABlab(21.30, 45.21, -63.33)
CIE-LCHlch(21.30, 77.81, 305.52°)
OKLaboklab(34.18% 0.0212 -0.183)
OKLCHoklch(34.18% 0.184 276.6)
XYZxyz(6.6460, 3.3250, 28.3028)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1994 #839419
analogous
#194694 #2A1994 #681994
triadic
#2A1994 #942A19 #19942A
tetradic
#2A1994 #941946 #839419 #199468
square
#2A1994 #941946 #839419 #199468
split-complementary
#2A1994 #946819 #469419
monochromatic
#0C072B #1B1060 #2A1994 #3922C8 #5D47E0

Accessibility & contrast

On white

12.61
#2A1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1994
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1994#FFFFFF#000000##FFFFFF
##2A19941.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1994;
/* rgb */ color: rgb(42, 25, 148);
/* oklch */ color: oklch(34.2% 0.184 276.6);
Tailwind
colors: {
  custom: {
    50: '#755ab5',
    500: '#2a1994',
    950: '#000000',
  },
}
SCSS
$custom: #2a1994;
$custom-light: #755ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1994",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 248.293,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34178,
    "c": 0.18424,
    "h": 276.6
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1994

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

Preview Lab → · Contrast checker → · Palette generator →

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