#2A34A4#2A34A4

#2A34A4 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.177 H 271.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2A34A4
RGBrgb(42, 52, 164)
HSLhsl(235, 59%, 40%)
HSVhsv(235, 74%, 64%)
CMYKcmyk(74.4%, 68.3%, 0%, 35.7%)
CIE-LABlab(28.45, 35.28, -61.31)
CIE-LCHlch(28.45, 70.74, 299.92°)
OKLaboklab(39.76% 0.0043 -0.1773)
OKLCHoklch(39.76% 0.177 271.4)
XYZxyz(8.8814, 5.6276, 35.7329)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A4 #A49A2A
analogous
#2A71A4 #2A34A4 #5D2AA4
triadic
#2A34A4 #A42A34 #34A42A
tetradic
#2A34A4 #A42A71 #A49A2A #2AA45D
square
#2A34A4 #A42A71 #A49A2A #2AA45D
split-complementary
#2A34A4 #A45D2A #71A42A
monochromatic
#111543 #1E2573 #2A34A4 #3E49CD #6E77DA

Accessibility & contrast

On white

9.88
#2A34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A4
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A4#FFFFFF#000000##FFFFFF
##2A34A41.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a34a4;
/* rgb */ color: rgb(42, 52, 164);
/* oklch */ color: oklch(39.8% 0.177 271.4);
Tailwind
colors: {
  custom: {
    50: '#776cc0',
    500: '#2a34a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a4;
$custom-light: #776cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a4",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 235.082,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3976,
    "c": 0.17738,
    "h": 271.4
  },
  "luminance": 0.05629
}

Semantic roles & 50–950 ramp

primary
#2A34A4
secondary
#C1BA69
accent
#D645E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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