#2A34A3#2A34A3

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

Color values

HEX#2A34A3
RGBrgb(42, 52, 163)
HSLhsl(235, 59%, 40%)
HSVhsv(235, 74%, 64%)
CMYKcmyk(74.2%, 68.1%, 0%, 36.1%)
CIE-LABlab(28.36, 34.92, -60.86)
CIE-LCHlch(28.36, 70.17, 299.85°)
OKLaboklab(39.66% 0.0044 -0.176)
OKLCHoklch(39.66% 0.176 271.4)
XYZxyz(8.7915, 5.5917, 35.2592)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A3 #A3992A
analogous
#2A71A3 #2A34A3 #5C2AA3
triadic
#2A34A3 #A32A34 #34A32A
tetradic
#2A34A3 #A32A71 #A3992A #2AA35C
square
#2A34A3 #A32A71 #A3992A #2AA35C
split-complementary
#2A34A3 #A35C2A #71A32A
monochromatic
#111542 #1D2472 #2A34A3 #3D49CD #6E77DA

Accessibility & contrast

On white

9.91
#2A34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A3
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A3#FFFFFF#000000##FFFFFF
##2A34A31.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a34a3;
/* rgb */ color: rgb(42, 52, 163);
/* oklch */ color: oklch(39.7% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#766cbf',
    500: '#2a34a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a3;
$custom-light: #766cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a3",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 235.041,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39662,
    "c": 0.17607,
    "h": 271.4
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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