#2A34A9#2A34A9

#2A34A9 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.184 H 271.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A34A9
RGBrgb(42, 52, 169)
HSLhsl(235, 60%, 41%)
HSVhsv(235, 75%, 66%)
CMYKcmyk(75.1%, 69.2%, 0%, 33.7%)
CIE-LABlab(28.93, 37.07, -63.54)
CIE-LCHlch(28.93, 73.56, 300.26°)
OKLaboklab(40.25% 0.0038 -0.1838)
OKLCHoklch(40.25% 0.184 271.2)
XYZxyz(9.3418, 5.8118, 38.1579)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A9 #A99F2A
analogous
#2A74A9 #2A34A9 #602AA9
triadic
#2A34A9 #A92A34 #34A92A
tetradic
#2A34A9 #A92A74 #A99F2A #2AA960
square
#2A34A9 #A92A74 #A99F2A #2AA960
split-complementary
#2A34A9 #A9602A #74A92A
monochromatic
#121647 #1E2578 #2A34A9 #414CD0 #727ADC

Accessibility & contrast

On white

9.71
#2A34A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A34A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A9
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A9#FFFFFF#000000##FFFFFF
##2A34A91.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a34a9;
/* rgb */ color: rgb(42, 52, 169);
/* oklch */ color: oklch(40.3% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#786cc4',
    500: '#2a34a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a9;
$custom-light: #786cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a9",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 169
  },
  "hsl": {
    "h": 235.276,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.18387,
    "h": 271.2
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#2A34A9
secondary
#C3BC6C
accent
#D744E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A34A9

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

Preview Lab → · Contrast checker → · Palette generator →

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