#2A2A96#2A2A96

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

Color values

HEX#2A2A96
RGBrgb(42, 42, 150)
HSLhsl(240, 56%, 38%)
HSVhsv(240, 72%, 59%)
CMYKcmyk(72%, 72%, 0%, 41.2%)
CIE-LABlab(24.79, 36.56, -58.79)
CIE-LCHlch(24.79, 69.23, 301.88°)
OKLaboklab(36.71% 0.0121 -0.17)
OKLCHoklch(36.71% 0.17 274.1)
XYZxyz(7.2860, 4.3495, 29.3038)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A96 #96962A
analogous
#2A6096 #2A2A96 #602A96
triadic
#2A2A96 #962A2A #2A962A
tetradic
#2A2A96 #962A60 #96962A #2A9660
square
#2A2A96 #962A60 #96962A #2A9660
split-complementary
#2A2A96 #96602A #60962A
monochromatic
#0F0F36 #1D1D66 #2A2A96 #3737C6 #6666D4

Accessibility & contrast

On white

11.23
#2A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A96
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A96#FFFFFF#000000##FFFFFF
##2A2A961.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2a96;
/* rgb */ color: rgb(42, 42, 150);
/* oklch */ color: oklch(36.7% 0.170 274.1);
Tailwind
colors: {
  custom: {
    50: '#7464b6',
    500: '#2a2a96',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a96;
$custom-light: #7464b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a96",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.17041,
    "h": 274.1
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#2A2A96
secondary
#BABA61
accent
#E048E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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