#2A3AA5#2A3AA5

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

Color values

HEX#2A3AA5
RGBrgb(42, 58, 165)
HSLhsl(232, 59%, 41%)
HSVhsv(232, 75%, 65%)
CMYKcmyk(74.5%, 64.8%, 0%, 35.3%)
CIE-LABlab(30.00, 31.79, -59.38)
CIE-LCHlch(30.00, 67.36, 298.16°)
OKLaboklab(40.91% 0.0005 -0.1717)
OKLCHoklch(40.91% 0.172 270.2)
XYZxyz(9.2571, 6.2340, 36.3054)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA5 #A5952A
analogous
#2A77A5 #2A3AA5 #572AA5
triadic
#2A3AA5 #A52A3A #3AA52A
tetradic
#2A3AA5 #A52A77 #A5952A #2AA557
square
#2A3AA5 #A52A77 #A5952A #2AA557
split-complementary
#2A3AA5 #A5572A #77A52A
monochromatic
#111843 #1E2974 #2A3AA5 #3E51CE #6F7DDA

Accessibility & contrast

On white

9.35
#2A3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A3AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA5
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA5#FFFFFF#000000##FFFFFF
##2A3AA51.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3aa5;
/* rgb */ color: rgb(42, 58, 165);
/* oklch */ color: oklch(40.9% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#7670c1',
    500: '#2a3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa5;
$custom-light: #7670c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa5",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 232.195,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.17166,
    "h": 270.2
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#2A3AA5
secondary
#C1B669
accent
#CE45E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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