#2A2191#2A2191

#2A2191 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.173 H 276.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2A2191
RGBrgb(42, 33, 145)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 77%, 57%)
CMYKcmyk(71%, 77.2%, 0%, 43.1%)
CIE-LABlab(22.39, 40.14, -59.67)
CIE-LCHlch(22.39, 71.92, 303.92°)
OKLaboklab(34.84% 0.0183 -0.1725)
OKLCHoklch(34.84% 0.173 276)
XYZxyz(6.6079, 3.6237, 27.1338)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2191 #889121
analogous
#215091 #2A2191 #622191
triadic
#2A2191 #912A21 #21912A
tetradic
#2A2191 #912150 #889121 #219162
square
#2A2191 #912150 #889121 #219162
split-complementary
#2A2191 #916221 #509121
monochromatic
#0D0A2D #1C165F #2A2191 #382CC3 #5F54D8

Accessibility & contrast

On white

12.18
#2A2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2191
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2191#FFFFFF#000000##FFFFFF
##2A21911.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2191;
/* rgb */ color: rgb(42, 33, 145);
/* oklch */ color: oklch(34.8% 0.173 276.0);
Tailwind
colors: {
  custom: {
    50: '#745eb2',
    500: '#2a2191',
    950: '#000000',
  },
}
SCSS
$custom: #2a2191;
$custom-light: #745eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2191",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 244.821,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34835,
    "c": 0.17346,
    "h": 276
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2191

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

Preview Lab → · Contrast checker → · Palette generator →

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