#2A34A2#2A34A2

#2A34A2 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.175 H 271.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A34A2
RGBrgb(42, 52, 162)
HSLhsl(235, 59%, 40%)
HSVhsv(235, 74%, 64%)
CMYKcmyk(74.1%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.26, 34.56, -60.41)
CIE-LCHlch(28.26, 69.60, 299.78°)
OKLaboklab(39.57% 0.0045 -0.1747)
OKLCHoklch(39.57% 0.175 271.5)
XYZxyz(8.7022, 5.5560, 34.7892)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A2 #A2982A
analogous
#2A70A2 #2A34A2 #5C2AA2
triadic
#2A34A2 #A22A34 #34A22A
tetradic
#2A34A2 #A22A70 #A2982A #2AA25C
square
#2A34A2 #A22A70 #A2982A #2AA25C
split-complementary
#2A34A2 #A25C2A #70A22A
monochromatic
#111541 #1D2471 #2A34A2 #3D49CD #6D76D9

Accessibility & contrast

On white

9.95
#2A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A2
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A2#FFFFFF#000000##FFFFFF
##2A34A21.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a34a2;
/* rgb */ color: rgb(42, 52, 162);
/* oklch */ color: oklch(39.6% 0.175 271.5);
Tailwind
colors: {
  custom: {
    50: '#766cbf',
    500: '#2a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a2;
$custom-light: #766cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a2",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 235,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.17476,
    "h": 271.5
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#2A34A2
secondary
#C0B968
accent
#D546E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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