#2A34AE#2A34AE

#2A34AE is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.190 H 271.0°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2A34AE
RGBrgb(42, 52, 174)
HSLhsl(235, 61%, 42%)
HSVhsv(235, 76%, 68%)
CMYKcmyk(75.9%, 70.1%, 0%, 31.8%)
CIE-LABlab(29.42, 38.84, -65.73)
CIE-LCHlch(29.42, 76.35, 300.58°)
OKLaboklab(40.75% 0.0032 -0.1902)
OKLCHoklch(40.75% 0.19 271)
XYZxyz(9.8202, 6.0032, 40.6774)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34AE #AEA42A
analogous
#2A76AE #2A34AE #622AAE
triadic
#2A34AE #AE2A34 #34AE2A
tetradic
#2A34AE #AE2A76 #AEA42A #2AAE62
square
#2A34AE #AE2A76 #AEA42A #2AAE62
split-complementary
#2A34AE #AE622A #76AE2A
monochromatic
#12174B #1E257D #2A34AE #434ED2 #757DDE

Accessibility & contrast

On white

9.54
#2A34AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A34AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34AE
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34AE#FFFFFF#000000##FFFFFF
##2A34AE1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a34ae;
/* rgb */ color: rgb(42, 52, 174);
/* oklch */ color: oklch(40.8% 0.190 271.0);
Tailwind
colors: {
  custom: {
    50: '#796cc7',
    500: '#2a34ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a34ae;
$custom-light: #796cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34ae",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 235.455,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40753,
    "c": 0.19027,
    "h": 271
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#2A34AE
secondary
#C5BF6F
accent
#D844E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A34AE

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

Preview Lab → · Contrast checker → · Palette generator →

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