#2A2192#2A2192

#2A2192 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.175 H 275.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2A2192
RGBrgb(42, 33, 146)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 77%, 57%)
CMYKcmyk(71.2%, 77.4%, 0%, 42.7%)
CIE-LABlab(22.50, 40.47, -60.11)
CIE-LCHlch(22.50, 72.47, 303.95°)
OKLaboklab(34.95% 0.018 -0.1738)
OKLCHoklch(34.95% 0.175 275.9)
XYZxyz(6.6853, 3.6547, 27.5417)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2192 #899221
analogous
#215092 #2A2192 #632192
triadic
#2A2192 #922A21 #21922A
tetradic
#2A2192 #922150 #899221 #219263
square
#2A2192 #922150 #899221 #219263
split-complementary
#2A2192 #926321 #509221
monochromatic
#0D0A2E #1C1660 #2A2192 #382CC4 #5F55D9

Accessibility & contrast

On white

12.13
#2A2192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2192
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2192#FFFFFF#000000##FFFFFF
##2A21921.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2192;
/* rgb */ color: rgb(42, 33, 146);
/* oklch */ color: oklch(34.9% 0.175 275.9);
Tailwind
colors: {
  custom: {
    50: '#745fb3',
    500: '#2a2192',
    950: '#000000',
  },
}
SCSS
$custom: #2a2192;
$custom-light: #745fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2192",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 244.779,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.17471,
    "h": 275.9
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#2A2192
secondary
#B4BC53
accent
#E642D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A2192

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

Preview Lab → · Contrast checker → · Palette generator →

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