#2A34AB#2A34AB

#2A34AB is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.186 H 271.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2A34AB
RGBrgb(42, 52, 171)
HSLhsl(235, 61%, 42%)
HSVhsv(235, 75%, 67%)
CMYKcmyk(75.4%, 69.6%, 0%, 32.9%)
CIE-LABlab(29.13, 37.78, -64.42)
CIE-LCHlch(29.13, 74.68, 300.39°)
OKLaboklab(40.45% 0.0036 -0.1864)
OKLCHoklch(40.45% 0.186 271.1)
XYZxyz(9.5310, 5.8875, 39.1543)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34AB #ABA12A
analogous
#2A75AB #2A34AB #612AAB
triadic
#2A34AB #AB2A34 #34AB2A
tetradic
#2A34AB #AB2A75 #ABA12A #2AAB61
square
#2A34AB #AB2A75 #ABA12A #2AAB61
split-complementary
#2A34AB #AB612A #75AB2A
monochromatic
#121649 #1E257A #2A34AB #424DD1 #737BDD

Accessibility & contrast

On white

9.64
#2A34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34AB
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34AB#FFFFFF#000000##FFFFFF
##2A34AB1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a34ab;
/* rgb */ color: rgb(42, 52, 171);
/* oklch */ color: oklch(40.5% 0.186 271.1);
Tailwind
colors: {
  custom: {
    50: '#786cc5',
    500: '#2a34ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a34ab;
$custom-light: #786cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34ab",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 235.349,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40453,
    "c": 0.18644,
    "h": 271.1
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#2A34AB
secondary
#C4BD6D
accent
#D744E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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