#2A2197#2A2197

#2A2197 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.181 H 275.3°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2197
RGBrgb(42, 33, 151)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 59%)
CMYKcmyk(72.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.05, 42.11, -62.29)
CIE-LCHlch(23.05, 75.19, 304.06°)
OKLaboklab(35.49% 0.0169 -0.1801)
OKLCHoklch(35.49% 0.181 275.3)
XYZxyz(7.0828, 3.8136, 29.6350)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2197 #8E9721
analogous
#215397 #2A2197 #652197
triadic
#2A2197 #972A21 #21972A
tetradic
#2A2197 #972153 #8E9721 #219765
square
#2A2197 #972153 #8E9721 #219765
split-complementary
#2A2197 #976521 #539721
monochromatic
#0E0B33 #1C1665 #2A2197 #382CC9 #6258DA

Accessibility & contrast

On white

11.91
#2A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2197
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2197#FFFFFF#000000##FFFFFF
##2A21971.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2197;
/* rgb */ color: rgb(42, 33, 151);
/* oklch */ color: oklch(35.5% 0.181 275.3);
Tailwind
colors: {
  custom: {
    50: '#755fb7',
    500: '#2a2197',
    950: '#000000',
  },
}
SCSS
$custom: #2a2197;
$custom-light: #755fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2197",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 244.576,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35495,
    "c": 0.18091,
    "h": 275.3
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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