#2A2995#2A2995

#2A2995 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.170 H 274.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2A2995
RGBrgb(42, 41, 149)
HSLhsl(241, 57%, 37%)
HSVhsv(241, 72%, 58%)
CMYKcmyk(71.8%, 72.5%, 0%, 41.6%)
CIE-LABlab(24.47, 36.82, -58.71)
CIE-LCHlch(24.47, 69.30, 302.10°)
OKLaboklab(36.44% 0.0129 -0.1697)
OKLCHoklch(36.44% 0.17 274.3)
XYZxyz(7.1708, 4.2474, 28.8699)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2995 #949529
analogous
#295E95 #2A2995 #602995
triadic
#2A2995 #952A29 #29952A
tetradic
#2A2995 #95295E #949529 #299560
square
#2A2995 #95295E #949529 #299560
split-complementary
#2A2995 #956029 #5E9529
monochromatic
#0F0F35 #1C1C65 #2A2995 #3836C5 #6564D4

Accessibility & contrast

On white

11.35
#2A2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2995
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2995#FFFFFF#000000##FFFFFF
##2A29951.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2995;
/* rgb */ color: rgb(42, 41, 149);
/* oklch */ color: oklch(36.4% 0.170 274.3);
Tailwind
colors: {
  custom: {
    50: '#7464b5',
    500: '#2a2995',
    950: '#000000',
  },
}
SCSS
$custom: #2a2995;
$custom-light: #7464b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2995",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 240.556,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36444,
    "c": 0.17022,
    "h": 274.3
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#2A2995
secondary
#B9BA60
accent
#E048DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2995

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

Preview Lab → · Contrast checker → · Palette generator →

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