#2A34B7#2A34B7

#2A34B7 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.7% C 0.202 H 270.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A34B7
RGBrgb(42, 52, 183)
HSLhsl(236, 63%, 44%)
HSVhsv(236, 77%, 72%)
CMYKcmyk(77%, 71.6%, 0%, 28.2%)
CIE-LABlab(30.32, 41.99, -69.62)
CIE-LCHlch(30.32, 81.30, 301.09°)
OKLaboklab(41.67% 0.0021 -0.2016)
OKLCHoklch(41.67% 0.202 270.6)
XYZxyz(10.7272, 6.3659, 45.4540)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B7 #B7AD2A
analogous
#2A7BB7 #2A34B7 #672AB7
triadic
#2A34B7 #B72A34 #34B72A
tetradic
#2A34B7 #B72A7B #B7AD2A #2AB767
square
#2A34B7 #B72A7B #B7AD2A #2AB767
split-complementary
#2A34B7 #B7672A #7BB72A
monochromatic
#131853 #1F2685 #2A34B7 #4953D5 #7B82E1

Accessibility & contrast

On white

9.24
#2A34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34B7
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B7#FFFFFF#000000##FFFFFF
##2A34B71.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0040B5
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a34b7;
/* rgb */ color: rgb(42, 52, 183);
/* oklch */ color: oklch(41.7% 0.202 270.6);
Tailwind
colors: {
  custom: {
    50: '#7b6cce',
    500: '#2a34b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b7;
$custom-light: #7b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b7",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 235.745,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.20158,
    "h": 270.6
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#2A34B7
secondary
#C9C374
accent
#DA42E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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