#2A34A8#2A34A8

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

Color values

HEX#2A34A8
RGBrgb(42, 52, 168)
HSLhsl(235, 60%, 41%)
HSVhsv(235, 75%, 66%)
CMYKcmyk(75%, 69%, 0%, 34.1%)
CIE-LABlab(28.84, 36.71, -63.09)
CIE-LCHlch(28.84, 73.00, 300.20°)
OKLaboklab(40.15% 0.0039 -0.1825)
OKLCHoklch(40.15% 0.183 271.2)
XYZxyz(9.2483, 5.7744, 37.6654)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A8 #A89E2A
analogous
#2A73A8 #2A34A8 #5F2AA8
triadic
#2A34A8 #A82A34 #34A82A
tetradic
#2A34A8 #A82A73 #A89E2A #2AA85F
square
#2A34A8 #A82A73 #A89E2A #2AA85F
split-complementary
#2A34A8 #A85F2A #73A82A
monochromatic
#121646 #1E2577 #2A34A8 #404BCF #7179DB

Accessibility & contrast

On white

9.74
#2A34A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A34A8
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A8#FFFFFF#000000##FFFFFF
##2A34A81.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a34a8;
/* rgb */ color: rgb(42, 52, 168);
/* oklch */ color: oklch(40.2% 0.183 271.2);
Tailwind
colors: {
  custom: {
    50: '#786cc3',
    500: '#2a34a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a8;
$custom-light: #786cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a8",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 235.238,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.18258,
    "h": 271.2
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#2A34A8
secondary
#C3BC6B
accent
#D745E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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