#2A3BA2#2A3BA2

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

Color values

HEX#2A3BA2
RGBrgb(42, 59, 162)
HSLhsl(232, 59%, 40%)
HSVhsv(232, 74%, 64%)
CMYKcmyk(74.1%, 63.6%, 0%, 36.5%)
CIE-LABlab(29.98, 30.03, -57.60)
CIE-LCHlch(29.98, 64.96, 297.53°)
OKLaboklab(40.82% -0.0001 -0.1664)
OKLCHoklch(40.82% 0.166 270)
XYZxyz(9.0382, 6.2279, 34.9012)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3BA2 #A2912A
analogous
#2A77A2 #2A3BA2 #552AA2
triadic
#2A3BA2 #A22A3B #3BA22A
tetradic
#2A3BA2 #A22A77 #A2912A #2AA255
square
#2A3BA2 #A22A77 #A2912A #2AA255
split-complementary
#2A3BA2 #A2552A #77A22A
monochromatic
#111841 #1D2971 #2A3BA2 #3D51CD #6D7CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A3BA2#FFFFFF#000000##FFFFFF
##2A3BA21.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)
#004CA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3ba2;
/* rgb */ color: rgb(42, 59, 162);
/* oklch */ color: oklch(40.8% 0.166 270.0);
Tailwind
colors: {
  custom: {
    50: '#7671be',
    500: '#2a3ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2a3ba2;
$custom-light: #7671be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3ba2",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 231.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.16642,
    "h": 270
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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