#2A34AC#2A34AC

#2A34AC is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.188 H 271.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2A34AC
RGBrgb(42, 52, 172)
HSLhsl(235, 61%, 42%)
HSVhsv(235, 76%, 67%)
CMYKcmyk(75.6%, 69.8%, 0%, 32.5%)
CIE-LABlab(29.22, 38.14, -64.86)
CIE-LCHlch(29.22, 75.24, 300.45°)
OKLaboklab(40.55% 0.0035 -0.1877)
OKLCHoklch(40.55% 0.188 271.1)
XYZxyz(9.6267, 5.9258, 39.6582)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34AC #ACA22A
analogous
#2A75AC #2A34AC #612AAC
triadic
#2A34AC #AC2A34 #34AC2A
tetradic
#2A34AC #AC2A75 #ACA22A #2AAC61
square
#2A34AC #AC2A75 #ACA22A #2AAC61
split-complementary
#2A34AC #AC612A #75AC2A
monochromatic
#12164A #1E257B #2A34AC #424DD1 #737CDD

Accessibility & contrast

On white

9.61
#2A34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34AC
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34AC#FFFFFF#000000##FFFFFF
##2A34AC1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a34ac;
/* rgb */ color: rgb(42, 52, 172);
/* oklch */ color: oklch(40.6% 0.188 271.1);
Tailwind
colors: {
  custom: {
    50: '#796cc6',
    500: '#2a34ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a34ac;
$custom-light: #796cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34ac",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 235.385,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.18772,
    "h": 271.1
  },
  "luminance": 0.05927
}

Semantic roles & 50–950 ramp

primary
#2A34AC
secondary
#C4BE6D
accent
#D844E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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