#2A2196#2A2196

#2A2196 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 275.5°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2A2196
RGBrgb(42, 33, 150)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 59%)
CMYKcmyk(72%, 78%, 0%, 41.2%)
CIE-LABlab(22.93, 41.78, -61.86)
CIE-LCHlch(22.93, 74.65, 304.04°)
OKLaboklab(35.38% 0.0171 -0.1789)
OKLCHoklch(35.38% 0.18 275.5)
XYZxyz(7.0019, 3.7813, 29.2091)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2196 #8D9621
analogous
#215296 #2A2196 #642196
triadic
#2A2196 #962A21 #21962A
tetradic
#2A2196 #962152 #8D9621 #219664
square
#2A2196 #962152 #8D9621 #219664
split-complementary
#2A2196 #966421 #529621
monochromatic
#0E0B32 #1C1664 #2A2196 #382CC8 #6157DA

Accessibility & contrast

On white

11.96
#2A2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2196
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2196#FFFFFF#000000##FFFFFF
##2A21961.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2196;
/* rgb */ color: rgb(42, 33, 150);
/* oklch */ color: oklch(35.4% 0.180 275.5);
Tailwind
colors: {
  custom: {
    50: '#755fb6',
    500: '#2a2196',
    950: '#000000',
  },
}
SCSS
$custom: #2a2196;
$custom-light: #755fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2196",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 244.615,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.17967,
    "h": 275.5
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#2A2196
secondary
#B6BE55
accent
#E741DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2196

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

Preview Lab → · Contrast checker → · Palette generator →

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