#2A2292#2A2292

#2A2292 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.174 H 275.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2A2292
RGBrgb(42, 34, 146)
HSLhsl(244, 62%, 35%)
HSVhsv(244, 77%, 57%)
CMYKcmyk(71.2%, 76.7%, 0%, 42.7%)
CIE-LABlab(22.69, 39.91, -59.79)
CIE-LCHlch(22.69, 71.88, 303.72°)
OKLaboklab(35.08% 0.0175 -0.1728)
OKLCHoklch(35.08% 0.174 275.8)
XYZxyz(6.7135, 3.7110, 27.5510)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2292 #8A9222
analogous
#225292 #2A2292 #622292
triadic
#2A2292 #922A22 #22922A
tetradic
#2A2292 #922252 #8A9222 #229262
square
#2A2292 #922252 #8A9222 #229262
split-complementary
#2A2292 #926222 #529222
monochromatic
#0D0B2F #1C1660 #2A2292 #382EC4 #6057D8

Accessibility & contrast

On white

12.05
#2A2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2292
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2292#FFFFFF#000000##FFFFFF
##2A22921.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2292;
/* rgb */ color: rgb(42, 34, 146);
/* oklch */ color: oklch(35.1% 0.174 275.8);
Tailwind
colors: {
  custom: {
    50: '#745fb3',
    500: '#2a2292',
    950: '#000000',
  },
}
SCSS
$custom: #2a2292;
$custom-light: #745fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2292",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 244.286,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.17372,
    "h": 275.8
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#2A2292
secondary
#B4BC54
accent
#E543DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2292

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

Preview Lab → · Contrast checker → · Palette generator →

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