#2A2891#2A2891

#2A2891 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.166 H 274.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2891
RGBrgb(42, 40, 145)
HSLhsl(241, 57%, 36%)
HSVhsv(241, 72%, 57%)
CMYKcmyk(71%, 72.4%, 0%, 43.1%)
CIE-LABlab(23.85, 36.04, -57.27)
CIE-LCHlch(23.85, 67.66, 302.19°)
OKLaboklab(35.87% 0.0142 -0.1655)
OKLCHoklch(35.87% 0.166 274.9)
XYZxyz(6.8228, 4.0535, 27.2054)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2891 #8F9128
analogous
#285B91 #2A2891 #5F2891
triadic
#2A2891 #912A28 #28912A
tetradic
#2A2891 #91285B #8F9128 #28915F
square
#2A2891 #91285B #8F9128 #28915F
split-complementary
#2A2891 #915F28 #5B9128
monochromatic
#0E0E31 #1C1B61 #2A2891 #3835C1 #6260D3

Accessibility & contrast

On white

11.60
#2A2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2891
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2891#FFFFFF#000000##FFFFFF
##2A28911.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2891;
/* rgb */ color: rgb(42, 40, 145);
/* oklch */ color: oklch(35.9% 0.166 274.9);
Tailwind
colors: {
  custom: {
    50: '#7363b2',
    500: '#2a2891',
    950: '#000000',
  },
}
SCSS
$custom: #2a2891;
$custom-light: #7363b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2891",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 241.143,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35874,
    "c": 0.16612,
    "h": 274.9
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#2A2891
secondary
#B7B95C
accent
#E048DD
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2891

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

Preview Lab → · Contrast checker → · Palette generator →

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