#2A34B0#2A34B0

#2A34B0 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.193 H 270.9°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A34B0
RGBrgb(42, 52, 176)
HSLhsl(236, 61%, 43%)
HSVhsv(236, 76%, 69%)
CMYKcmyk(76.1%, 70.5%, 0%, 31%)
CIE-LABlab(29.62, 39.55, -66.60)
CIE-LCHlch(29.62, 77.46, 300.70°)
OKLaboklab(40.96% 0.003 -0.1928)
OKLCHoklch(40.96% 0.193 270.9)
XYZxyz(10.0166, 6.0817, 41.7119)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B0 #B0A62A
analogous
#2A77B0 #2A34B0 #632AB0
triadic
#2A34B0 #B02A34 #34B02A
tetradic
#2A34B0 #B02A77 #B0A62A #2AB063
square
#2A34B0 #B02A77 #B0A62A #2AB063
split-complementary
#2A34B0 #B0632A #77B02A
monochromatic
#12174D #1E257F #2A34B0 #454FD3 #767EDE

Accessibility & contrast

On white

9.47
#2A34B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A34B0
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B0#FFFFFF#000000##FFFFFF
##2A34B01.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a34b0;
/* rgb */ color: rgb(42, 52, 176);
/* oklch */ color: oklch(41.0% 0.193 270.9);
Tailwind
colors: {
  custom: {
    50: '#7a6cc9',
    500: '#2a34b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b0;
$custom-light: #7a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b0",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 176
  },
  "hsl": {
    "h": 235.522,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40955,
    "c": 0.1928,
    "h": 270.9
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A34B0

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

Preview Lab → · Contrast checker → · Palette generator →

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