#2A2194#2A2194

#2A2194 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.177 H 275.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A2194
RGBrgb(42, 33, 148)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(71.6%, 77.7%, 0%, 42%)
CIE-LABlab(22.71, 41.12, -60.99)
CIE-LCHlch(22.71, 73.56, 303.99°)
OKLaboklab(35.16% 0.0176 -0.1763)
OKLCHoklch(35.16% 0.177 275.7)
XYZxyz(6.8422, 3.7174, 28.3682)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2194 #8B9421
analogous
#215194 #2A2194 #642194
triadic
#2A2194 #942A21 #21942A
tetradic
#2A2194 #942151 #8B9421 #219464
square
#2A2194 #942151 #8B9421 #219464
split-complementary
#2A2194 #946421 #519421
monochromatic
#0E0B30 #1C1662 #2A2194 #382CC6 #6056D9

Accessibility & contrast

On white

12.04
#2A2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2194
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2194#FFFFFF#000000##FFFFFF
##2A21941.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2194;
/* rgb */ color: rgb(42, 33, 148);
/* oklch */ color: oklch(35.2% 0.177 275.7);
Tailwind
colors: {
  custom: {
    50: '#755fb5',
    500: '#2a2194',
    950: '#000000',
  },
}
SCSS
$custom: #2a2194;
$custom-light: #755fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2194",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 244.696,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35164,
    "c": 0.1772,
    "h": 275.7
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2194

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

Preview Lab → · Contrast checker → · Palette generator →

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