#2A34A7#2A34A7

#2A34A7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.181 H 271.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2A34A7
RGBrgb(42, 52, 167)
HSLhsl(235, 60%, 41%)
HSVhsv(235, 75%, 65%)
CMYKcmyk(74.9%, 68.9%, 0%, 34.5%)
CIE-LABlab(28.74, 36.36, -62.65)
CIE-LCHlch(28.74, 72.44, 300.13°)
OKLaboklab(40.06% 0.004 -0.1812)
OKLCHoklch(40.06% 0.181 271.3)
XYZxyz(9.1555, 5.7373, 37.1766)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34A7 #A79D2A
analogous
#2A72A7 #2A34A7 #5E2AA7
triadic
#2A34A7 #A72A34 #34A72A
tetradic
#2A34A7 #A72A72 #A79D2A #2AA75E
square
#2A34A7 #A72A72 #A79D2A #2AA75E
split-complementary
#2A34A7 #A75E2A #72A72A
monochromatic
#111645 #1E2576 #2A34A7 #3F4BCF #7079DB

Accessibility & contrast

On white

9.78
#2A34A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A34A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34A7
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34A7#FFFFFF#000000##FFFFFF
##2A34A71.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a34a7;
/* rgb */ color: rgb(42, 52, 167);
/* oklch */ color: oklch(40.1% 0.181 271.3);
Tailwind
colors: {
  custom: {
    50: '#776cc2',
    500: '#2a34a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a34a7;
$custom-light: #776cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34a7",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 235.2,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40055,
    "c": 0.18128,
    "h": 271.3
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

primary
#2A34A7
secondary
#C2BB6B
accent
#D645E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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