#2A2291#2A2291

#2A2291 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.172 H 275.9°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A2291
RGBrgb(42, 34, 145)
HSLhsl(244, 62%, 35%)
HSVhsv(244, 77%, 57%)
CMYKcmyk(71%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.58, 39.58, -59.35)
CIE-LCHlch(22.58, 71.33, 303.70°)
OKLaboklab(34.98% 0.0177 -0.1716)
OKLCHoklch(34.98% 0.172 275.9)
XYZxyz(6.6360, 3.6800, 27.1432)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2291 #899122
analogous
#225291 #2A2291 #612291
triadic
#2A2291 #912A22 #22912A
tetradic
#2A2291 #912252 #899122 #229161
square
#2A2291 #912252 #899122 #229161
split-complementary
#2A2291 #916122 #529122
monochromatic
#0D0B2E #1C165F #2A2291 #382EC3 #5F56D7

Accessibility & contrast

On white

12.10
#2A2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2291
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2291#FFFFFF#000000##FFFFFF
##2A22911.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2291;
/* rgb */ color: rgb(42, 34, 145);
/* oklch */ color: oklch(35.0% 0.172 275.9);
Tailwind
colors: {
  custom: {
    50: '#745fb2',
    500: '#2a2291',
    950: '#000000',
  },
}
SCSS
$custom: #2a2291;
$custom-light: #745fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2291",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 244.324,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34975,
    "c": 0.17247,
    "h": 275.9
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#2A2291
secondary
#B4BB53
accent
#E543D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2291

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

Preview Lab → · Contrast checker → · Palette generator →

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