#2A3AAD#2A3AAD

#2A3AAD is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.182 H 270.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2A3AAD
RGBrgb(42, 58, 173)
HSLhsl(233, 61%, 42%)
HSVhsv(233, 76%, 68%)
CMYKcmyk(75.7%, 66.5%, 0%, 32.2%)
CIE-LABlab(30.72, 34.72, -62.99)
CIE-LCHlch(30.72, 71.93, 298.86°)
OKLaboklab(41.67% 0 -0.1822)
OKLCHoklch(41.67% 0.182 270)
XYZxyz(10.0081, 6.5344, 40.2609)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AAD #AD9D2A
analogous
#2A7BAD #2A3AAD #5C2AAD
triadic
#2A3AAD #AD2A3A #3AAD2A
tetradic
#2A3AAD #AD2A7B #AD9D2A #2AAD5C
square
#2A3AAD #AD2A7B #AD9D2A #2AAD5C
split-complementary
#2A3AAD #AD5C2A #7BAD2A
monochromatic
#12194B #1E297C #2A3AAD #4354D1 #7481DD

Accessibility & contrast

On white

9.10
#2A3AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A3AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AAD
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AAD#FFFFFF#000000##FFFFFF
##2A3AAD1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3aad;
/* rgb */ color: rgb(42, 58, 173);
/* oklch */ color: oklch(41.7% 0.182 270.0);
Tailwind
colors: {
  custom: {
    50: '#7870c6',
    500: '#2a3aad',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aad;
$custom-light: #7870c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aad",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 173
  },
  "hsl": {
    "h": 232.672,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4167,
    "c": 0.18223,
    "h": 270
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#2A3AAD
secondary
#C5BA6E
accent
#D044E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A3AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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