#2A2296#2A2296

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

Color values

HEX#2A2296
RGBrgb(42, 34, 150)
HSLhsl(244, 63%, 36%)
HSVhsv(244, 77%, 59%)
CMYKcmyk(72%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.13, 41.23, -61.54)
CIE-LCHlch(23.13, 74.08, 303.82°)
OKLaboklab(35.52% 0.0166 -0.1779)
OKLCHoklch(35.52% 0.179 275.3)
XYZxyz(7.0301, 3.8376, 29.2185)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2296 #8E9622
analogous
#225496 #2A2296 #642296
triadic
#2A2296 #962A22 #22962A
tetradic
#2A2296 #962254 #8E9622 #229664
square
#2A2296 #962254 #8E9622 #229664
split-complementary
#2A2296 #966422 #549622
monochromatic
#0E0B32 #1C1764 #2A2296 #382DC8 #6259D9

Accessibility & contrast

On white

11.88
#2A2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2296
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2296#FFFFFF#000000##FFFFFF
##2A22961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2296;
/* rgb */ color: rgb(42, 34, 150);
/* oklch */ color: oklch(35.5% 0.179 275.3);
Tailwind
colors: {
  custom: {
    50: '#755fb6',
    500: '#2a2296',
    950: '#000000',
  },
}
SCSS
$custom: #2a2296;
$custom-light: #755fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2296",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 244.138,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35519,
    "c": 0.17871,
    "h": 275.3
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#2A2296
secondary
#B6BE56
accent
#E642DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2296

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

Preview Lab → · Contrast checker → · Palette generator →

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