#2A34B1#2A34B1

#2A34B1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.194 H 270.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A34B1
RGBrgb(42, 52, 177)
HSLhsl(236, 62%, 43%)
HSVhsv(236, 76%, 69%)
CMYKcmyk(76.3%, 70.6%, 0%, 30.6%)
CIE-LABlab(29.72, 39.90, -67.04)
CIE-LCHlch(29.72, 78.01, 300.76°)
OKLaboklab(41.06% 0.0029 -0.194)
OKLCHoklch(41.06% 0.194 270.8)
XYZxyz(10.1159, 6.1215, 42.2349)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B1 #B1A72A
analogous
#2A77B1 #2A34B1 #642AB1
triadic
#2A34B1 #B12A34 #34B12A
tetradic
#2A34B1 #B12A77 #B1A72A #2AB164
square
#2A34B1 #B12A77 #B1A72A #2AB164
split-complementary
#2A34B1 #B1642A #77B12A
monochromatic
#13174E #1E2580 #2A34B1 #4550D3 #777EDF

Accessibility & contrast

On white

9.44
#2A34B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A34B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34B1
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B1#FFFFFF#000000##FFFFFF
##2A34B11.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a34b1;
/* rgb */ color: rgb(42, 52, 177);
/* oklch */ color: oklch(41.1% 0.194 270.8);
Tailwind
colors: {
  custom: {
    50: '#7a6cc9',
    500: '#2a34b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b1;
$custom-light: #7a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b1",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 235.556,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.19407,
    "h": 270.8
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#2A34B1
secondary
#C6C070
accent
#D943E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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