#2A3AA4#2A3AA4

#2A3AA4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.170 H 270.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#2A3AA4
RGBrgb(42, 58, 164)
HSLhsl(232, 59%, 40%)
HSVhsv(232, 74%, 64%)
CMYKcmyk(74.4%, 64.6%, 0%, 35.7%)
CIE-LABlab(29.91, 31.42, -58.93)
CIE-LCHlch(29.91, 66.78, 298.07°)
OKLaboklab(40.82% 0.0005 -0.1703)
OKLCHoklch(40.82% 0.17 270.2)
XYZxyz(9.1665, 6.1977, 35.8280)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA4 #A4942A
analogous
#2A77A4 #2A3AA4 #572AA4
triadic
#2A3AA4 #A42A3A #3AA42A
tetradic
#2A3AA4 #A42A77 #A4942A #2AA457
square
#2A3AA4 #A42A77 #A4942A #2AA457
split-complementary
#2A3AA4 #A4572A #77A42A
monochromatic
#111843 #1E2973 #2A3AA4 #3E51CD #6E7DDA

Accessibility & contrast

On white

9.38
#2A3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA4
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA4#FFFFFF#000000##FFFFFF
##2A3AA41.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3aa4;
/* rgb */ color: rgb(42, 58, 164);
/* oklch */ color: oklch(40.8% 0.170 270.2);
Tailwind
colors: {
  custom: {
    50: '#7670c0',
    500: '#2a3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa4;
$custom-light: #7670c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa4",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 232.131,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.17033,
    "h": 270.2
  },
  "luminance": 0.06199
}

Semantic roles & 50–950 ramp

primary
#2A3AA4
secondary
#C1B569
accent
#CE45E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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