#2A34A5#2A34A5

#2A34A5 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.179 H 271.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A34A5
RGBrgb(42, 52, 165)
HSLhsl(235, 59%, 41%)
HSVhsv(235, 75%, 65%)
CMYKcmyk(74.5%, 68.5%, 0%, 35.3%)
CIE-LABlab(28.55, 35.64, -61.76)
CIE-LCHlch(28.55, 71.31, 299.99°)
OKLaboklab(39.86% 0.0042 -0.1786)
OKLCHoklch(39.86% 0.179 271.4)
XYZxyz(8.9721, 5.6639, 36.2104)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A5 #A59B2A
analogous
#2A71A5 #2A34A5 #5D2AA5
triadic
#2A34A5 #A52A34 #34A52A
tetradic
#2A34A5 #A52A71 #A59B2A #2AA55D
square
#2A34A5 #A52A71 #A59B2A #2AA55D
split-complementary
#2A34A5 #A55D2A #71A52A
monochromatic
#111543 #1E2574 #2A34A5 #3E4ACE #6F78DA

Accessibility & contrast

On white

9.85
#2A34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A5
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A5#FFFFFF#000000##FFFFFF
##2A34A51.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a34a5;
/* rgb */ color: rgb(42, 52, 165);
/* oklch */ color: oklch(39.9% 0.179 271.4);
Tailwind
colors: {
  custom: {
    50: '#776cc1',
    500: '#2a34a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a5;
$custom-light: #776cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a5",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 235.122,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.17869,
    "h": 271.4
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#2A34A5
secondary
#C1BA69
accent
#D645E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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