#2A2289#2A2289

#2A2289 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.162 H 276.9°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2A2289
RGBrgb(42, 34, 137)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 54%)
CMYKcmyk(69.3%, 75.2%, 0%, 46.3%)
CIE-LABlab(21.73, 36.89, -55.77)
CIE-LCHlch(21.73, 66.87, 303.49°)
OKLaboklab(34.12% 0.0194 -0.1611)
OKLCHoklch(34.12% 0.162 276.9)
XYZxyz(6.0408, 3.4419, 24.0081)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2289 #818922
analogous
#224D89 #2A2289 #5D2289
triadic
#2A2289 #892A22 #22892A
tetradic
#2A2289 #89224D #818922 #22895D
square
#2A2289 #89224D #818922 #22895D
split-complementary
#2A2289 #895D22 #4D8922
monochromatic
#0C0A27 #1B1658 #2A2289 #392EBA #5C51D4

Accessibility & contrast

On white

12.44
#2A2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2289
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2289#FFFFFF#000000##FFFFFF
##2A22891.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2289;
/* rgb */ color: rgb(42, 34, 137);
/* oklch */ color: oklch(34.1% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#725fac',
    500: '#2a2289',
    950: '#000000',
  },
}
SCSS
$custom: #2a2289;
$custom-light: #725fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2289",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 244.66,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.1623,
    "h": 276.9
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#2A2289
secondary
#AFB84F
accent
#E344D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2289

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

Preview Lab → · Contrast checker → · Palette generator →

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