#2A2999#2A2999

#2A2999 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.175 H 274.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2A2999
RGBrgb(42, 41, 153)
HSLhsl(241, 58%, 38%)
HSVhsv(241, 73%, 60%)
CMYKcmyk(72.5%, 73.2%, 0%, 40%)
CIE-LABlab(24.88, 38.20, -60.49)
CIE-LCHlch(24.88, 71.54, 302.27°)
OKLaboklab(36.86% 0.0122 -0.1749)
OKLCHoklch(36.86% 0.175 274)
XYZxyz(7.4956, 4.3773, 30.5807)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2999 #989929
analogous
#296099 #2A2999 #622999
triadic
#2A2999 #992A29 #29992A
tetradic
#2A2999 #992960 #989929 #299962
square
#2A2999 #992960 #989929 #299962
split-complementary
#2A2999 #996229 #609929
monochromatic
#100F38 #1D1C69 #2A2999 #3736C9 #6766D6

Accessibility & contrast

On white

11.20
#2A2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2999
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2999#FFFFFF#000000##FFFFFF
##2A29991.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2999;
/* rgb */ color: rgb(42, 41, 153);
/* oklch */ color: oklch(36.9% 0.175 274.0);
Tailwind
colors: {
  custom: {
    50: '#7564b8',
    500: '#2a2999',
    950: '#000000',
  },
}
SCSS
$custom: #2a2999;
$custom-light: #7564b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2999",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 240.536,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36859,
    "c": 0.17536,
    "h": 274
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#2A2999
secondary
#BBBC62
accent
#E147E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2A2999

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

Preview Lab → · Contrast checker → · Palette generator →

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