#2A34B4#2A34B4

#2A34B4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.198 H 270.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2A34B4
RGBrgb(42, 52, 180)
HSLhsl(236, 62%, 44%)
HSVhsv(236, 77%, 71%)
CMYKcmyk(76.7%, 71.1%, 0%, 29.4%)
CIE-LABlab(30.02, 40.94, -68.33)
CIE-LCHlch(30.02, 79.66, 300.93°)
OKLaboklab(41.36% 0.0025 -0.1978)
OKLCHoklch(41.36% 0.198 270.7)
XYZxyz(10.4183, 6.2424, 43.8270)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B4 #B4AA2A
analogous
#2A79B4 #2A34B4 #652AB4
triadic
#2A34B4 #B42A34 #34B42A
tetradic
#2A34B4 #B42A79 #B4AA2A #2AB465
square
#2A34B4 #B42A79 #B4AA2A #2AB465
split-complementary
#2A34B4 #B4652A #79B42A
monochromatic
#131751 #1E2682 #2A34B4 #4751D4 #7980E0

Accessibility & contrast

On white

9.34
#2A34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34B4
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B4#FFFFFF#000000##FFFFFF
##2A34B41.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a34b4;
/* rgb */ color: rgb(42, 52, 180);
/* oklch */ color: oklch(41.4% 0.198 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ccc',
    500: '#2a34b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b4;
$custom-light: #7b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b4",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 235.652,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41361,
    "c": 0.19784,
    "h": 270.7
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#2A34B4
secondary
#C8C172
accent
#D943E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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