#2A2295#2A2295

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

Color values

HEX#2A2295
RGBrgb(42, 34, 149)
HSLhsl(244, 63%, 36%)
HSVhsv(244, 77%, 58%)
CMYKcmyk(71.8%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.02, 40.90, -61.10)
CIE-LCHlch(23.02, 73.53, 303.80°)
OKLaboklab(35.41% 0.0168 -0.1767)
OKLCHoklch(35.41% 0.177 275.4)
XYZxyz(6.9499, 3.8056, 28.7962)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2295 #8D9522
analogous
#225395 #2A2295 #632295
triadic
#2A2295 #952A22 #22952A
tetradic
#2A2295 #952253 #8D9522 #229563
square
#2A2295 #952253 #8D9522 #229563
split-complementary
#2A2295 #956322 #539522
monochromatic
#0E0B31 #1C1763 #2A2295 #382DC7 #6158D9

Accessibility & contrast

On white

11.92
#2A2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2295
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2295#FFFFFF#000000##FFFFFF
##2A22951.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2295;
/* rgb */ color: rgb(42, 34, 149);
/* oklch */ color: oklch(35.4% 0.177 275.4);
Tailwind
colors: {
  custom: {
    50: '#755fb5',
    500: '#2a2295',
    950: '#000000',
  },
}
SCSS
$custom: #2a2295;
$custom-light: #755fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2295",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 244.174,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.17747,
    "h": 275.4
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#2A2295
secondary
#B6BD56
accent
#E642DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2295

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

Preview Lab → · Contrast checker → · Palette generator →

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