#2A3AA2#2A3AA2

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

Color values

HEX#2A3AA2
RGBrgb(42, 58, 162)
HSLhsl(232, 59%, 40%)
HSVhsv(232, 74%, 64%)
CMYKcmyk(74.1%, 64.2%, 0%, 36.5%)
CIE-LABlab(29.73, 30.68, -58.01)
CIE-LCHlch(29.73, 65.63, 297.88°)
OKLaboklab(40.64% 0.0006 -0.1676)
OKLCHoklch(40.64% 0.168 270.2)
XYZxyz(8.9873, 6.1261, 34.8842)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA2 #A2922A
analogous
#2A76A2 #2A3AA2 #562AA2
triadic
#2A3AA2 #A22A3A #3AA22A
tetradic
#2A3AA2 #A22A76 #A2922A #2AA256
square
#2A3AA2 #A22A76 #A2922A #2AA256
split-complementary
#2A3AA2 #A2562A #76A22A
monochromatic
#111741 #1D2971 #2A3AA2 #3D50CD #6D7CD9

Accessibility & contrast

On white

9.44
#2A3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA2
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA2#FFFFFF#000000##FFFFFF
##2A3AA21.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3aa2;
/* rgb */ color: rgb(42, 58, 162);
/* oklch */ color: oklch(40.6% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#7670be',
    500: '#2a3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa2;
$custom-light: #7670be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa2",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 232,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40636,
    "c": 0.16764,
    "h": 270.2
  },
  "luminance": 0.06127
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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