#2A3BA5#2A3BA5

#2A3BA5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.170 H 269.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3BA5
RGBrgb(42, 59, 165)
HSLhsl(232, 59%, 41%)
HSVhsv(232, 75%, 65%)
CMYKcmyk(74.5%, 64.2%, 0%, 35.3%)
CIE-LABlab(30.24, 31.14, -58.98)
CIE-LCHlch(30.24, 66.69, 297.83°)
OKLaboklab(41.1% -0.0002 -0.1705)
OKLCHoklch(41.1% 0.17 269.9)
XYZxyz(9.3080, 6.3358, 36.3224)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3BA5 #A5942A
analogous
#2A78A5 #2A3BA5 #562AA5
triadic
#2A3BA5 #A52A3B #3BA52A
tetradic
#2A3BA5 #A52A78 #A5942A #2AA556
square
#2A3BA5 #A52A78 #A5942A #2AA556
split-complementary
#2A3BA5 #A5562A #78A52A
monochromatic
#111843 #1E2A74 #2A3BA5 #3E52CE #6F7EDA

Accessibility & contrast

On white

9.26
#2A3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A3BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3BA5
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3BA5#FFFFFF#000000##FFFFFF
##2A3BA51.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3ba5;
/* rgb */ color: rgb(42, 59, 165);
/* oklch */ color: oklch(41.1% 0.170 269.9);
Tailwind
colors: {
  custom: {
    50: '#7671c1',
    500: '#2a3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2a3ba5;
$custom-light: #7671c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3ba5",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 231.707,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41097,
    "c": 0.17046,
    "h": 269.9
  },
  "luminance": 0.06337
}

Semantic roles & 50–950 ramp

primary
#2A3BA5
secondary
#C1B569
accent
#CD45E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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