#2A34AA#2A34AA

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

Color values

HEX#2A34AA
RGBrgb(42, 52, 170)
HSLhsl(235, 60%, 42%)
HSVhsv(235, 75%, 67%)
CMYKcmyk(75.3%, 69.4%, 0%, 33.3%)
CIE-LABlab(29.03, 37.43, -63.98)
CIE-LCHlch(29.03, 74.12, 300.33°)
OKLaboklab(40.35% 0.0037 -0.1851)
OKLCHoklch(40.35% 0.185 271.1)
XYZxyz(9.4361, 5.8495, 38.6542)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34AA #AAA02A
analogous
#2A74AA #2A34AA #602AAA
triadic
#2A34AA #AA2A34 #34AA2A
tetradic
#2A34AA #AA2A74 #AAA02A #2AAA60
square
#2A34AA #AA2A74 #AAA02A #2AAA60
split-complementary
#2A34AA #AA602A #74AA2A
monochromatic
#121648 #1E2579 #2A34AA #414CD0 #727ADC

Accessibility & contrast

On white

9.68
#2A34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34AA
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34AA#FFFFFF#000000##FFFFFF
##2A34AA1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a34aa;
/* rgb */ color: rgb(42, 52, 170);
/* oklch */ color: oklch(40.4% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#786cc4',
    500: '#2a34aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a34aa;
$custom-light: #786cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34aa",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 235.313,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40353,
    "c": 0.18516,
    "h": 271.1
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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