#2A2899#2A2899

#2A2899 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.176 H 274.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2A2899
RGBrgb(42, 40, 153)
HSLhsl(241, 59%, 38%)
HSVhsv(241, 74%, 60%)
CMYKcmyk(72.5%, 73.9%, 0%, 40%)
CIE-LABlab(24.67, 38.80, -60.84)
CIE-LCHlch(24.67, 72.16, 302.53°)
OKLaboklab(36.71% 0.0128 -0.176)
OKLCHoklch(36.71% 0.176 274.2)
XYZxyz(7.4615, 4.3090, 30.5693)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2899 #979928
analogous
#285E99 #2A2899 #622899
triadic
#2A2899 #992A28 #28992A
tetradic
#2A2899 #99285E #979928 #289962
square
#2A2899 #99285E #979928 #289962
split-complementary
#2A2899 #996228 #5E9928
monochromatic
#0F0F38 #1D1B68 #2A2899 #3735CA #6765D7

Accessibility & contrast

On white

11.28
#2A2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2899
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2899#FFFFFF#000000##FFFFFF
##2A28991.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2899;
/* rgb */ color: rgb(42, 40, 153);
/* oklch */ color: oklch(36.7% 0.176 274.2);
Tailwind
colors: {
  custom: {
    50: '#7563b8',
    500: '#2a2899',
    950: '#000000',
  },
}
SCSS
$custom: #2a2899;
$custom-light: #7563b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2899",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 241.062,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.17642,
    "h": 274.2
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2A2899
secondary
#BBBD60
accent
#E246DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A2899

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

Preview Lab → · Contrast checker → · Palette generator →

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