#2A3AA1#2A3AA1

#2A3AA1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.166 H 270.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A3AA1
RGBrgb(42, 58, 161)
HSLhsl(232, 59%, 40%)
HSVhsv(232, 74%, 63%)
CMYKcmyk(73.9%, 64%, 0%, 36.9%)
CIE-LABlab(29.64, 30.31, -57.55)
CIE-LCHlch(29.64, 65.05, 297.78°)
OKLaboklab(40.54% 0.0006 -0.1663)
OKLCHoklch(40.54% 0.166 270.2)
XYZxyz(8.8987, 6.0906, 34.4179)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA1 #A1912A
analogous
#2A75A1 #2A3AA1 #562AA1
triadic
#2A3AA1 #A12A3A #3AA12A
tetradic
#2A3AA1 #A12A75 #A1912A #2AA156
square
#2A3AA1 #A12A75 #A1912A #2AA156
split-complementary
#2A3AA1 #A1562A #75A12A
monochromatic
#111740 #1D2970 #2A3AA1 #3C4FCC #6D7BD9

Accessibility & contrast

On white

9.47
#2A3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A3AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA1
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA1#FFFFFF#000000##FFFFFF
##2A3AA11.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3aa1;
/* rgb */ color: rgb(42, 58, 161);
/* oklch */ color: oklch(40.5% 0.166 270.2);
Tailwind
colors: {
  custom: {
    50: '#7570be',
    500: '#2a3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa1;
$custom-light: #7570be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa1",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 231.933,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40544,
    "c": 0.16629,
    "h": 270.2
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#2A3AA1
secondary
#C0B467
accent
#CD46E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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