#2A2AA1#2A2AA1

#2A2AA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.184 H 273.2°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2A2AA1
RGBrgb(42, 42, 161)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 63%)
CMYKcmyk(73.9%, 73.9%, 0%, 36.9%)
CIE-LABlab(25.92, 40.35, -63.66)
CIE-LCHlch(25.92, 75.37, 302.37°)
OKLaboklab(37.85% 0.0103 -0.1842)
OKLCHoklch(37.85% 0.184 273.2)
XYZxyz(8.2137, 4.7205, 34.1896)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA1 #A1A12A
analogous
#2A66A1 #2A2AA1 #662AA1
triadic
#2A2AA1 #A12A2A #2AA12A
tetradic
#2A2AA1 #A12A66 #A1A12A #2AA166
square
#2A2AA1 #A12A66 #A1A12A #2AA166
split-complementary
#2A2AA1 #A1662A #66A12A
monochromatic
#111140 #1D1D70 #2A2AA1 #3C3CCC #6D6DD9

Accessibility & contrast

On white

10.80
#2A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA1
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA1#FFFFFF#000000##FFFFFF
##2A2AA11.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2aa1;
/* rgb */ color: rgb(42, 42, 161);
/* oklch */ color: oklch(37.9% 0.184 273.2);
Tailwind
colors: {
  custom: {
    50: '#7765be',
    500: '#2a2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa1;
$custom-light: #7765be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa1",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 240,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3785,
    "c": 0.18445,
    "h": 273.2
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#2A2AA1
secondary
#C0C067
accent
#E246E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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