#2A2989#2A2989

#2A2989 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.154 H 275.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2A2989
RGBrgb(42, 41, 137)
HSLhsl(241, 54%, 35%)
HSVhsv(241, 70%, 54%)
CMYKcmyk(69.3%, 70.1%, 0%, 46.3%)
CIE-LABlab(23.28, 32.62, -53.22)
CIE-LCHlch(23.28, 62.42, 301.50°)
OKLaboklab(35.23% 0.0147 -0.1537)
OKLCHoklch(35.23% 0.154 275.5)
XYZxyz(6.2617, 3.8837, 24.0817)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2989 #888929
analogous
#295889 #2A2989 #5A2989
triadic
#2A2989 #892A29 #29892A
tetradic
#2A2989 #892958 #888929 #29895A
square
#2A2989 #892958 #888929 #29895A
split-complementary
#2A2989 #895A29 #588929
monochromatic
#0D0D2B #1C1B5A #2A2989 #3837B8 #5F5ECF

Accessibility & contrast

On white

11.82
#2A2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2989
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2989#FFFFFF#000000##FFFFFF
##2A29891.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2989;
/* rgb */ color: rgb(42, 41, 137);
/* oklch */ color: oklch(35.2% 0.154 275.5);
Tailwind
colors: {
  custom: {
    50: '#7163ac',
    500: '#2a2989',
    950: '#000000',
  },
}
SCSS
$custom: #2a2989;
$custom-light: #7163ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2989",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 240.625,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35228,
    "c": 0.1544,
    "h": 275.5
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#2A2989
secondary
#B3B45A
accent
#DD4ADC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2989

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

Preview Lab → · Contrast checker → · Palette generator →

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