#2A36A4#2A36A4

#2A36A4 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.175 H 271.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A36A4
RGBrgb(42, 54, 164)
HSLhsl(234, 59%, 40%)
HSVhsv(234, 74%, 64%)
CMYKcmyk(74.4%, 67.1%, 0%, 35.7%)
CIE-LABlab(28.93, 34.01, -60.53)
CIE-LCHlch(28.93, 69.43, 299.33°)
OKLaboklab(40.11% 0.0031 -0.175)
OKLCHoklch(40.11% 0.175 271)
XYZxyz(8.9726, 5.8100, 35.7633)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A36A4 #A4982A
analogous
#2A73A4 #2A36A4 #5B2AA4
triadic
#2A36A4 #A42A36 #36A42A
tetradic
#2A36A4 #A42A73 #A4982A #2AA45B
square
#2A36A4 #A42A73 #A4982A #2AA45B
split-complementary
#2A36A4 #A45B2A #73A42A
monochromatic
#111643 #1E2673 #2A36A4 #3E4CCD #6E79DA

Accessibility & contrast

On white

9.71
#2A36A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A36A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A36A4
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A36A4#FFFFFF#000000##FFFFFF
##2A36A41.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a36a4;
/* rgb */ color: rgb(42, 54, 164);
/* oklch */ color: oklch(40.1% 0.175 271.0);
Tailwind
colors: {
  custom: {
    50: '#766dc0',
    500: '#2a36a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a36a4;
$custom-light: #766dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a36a4",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 234.098,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.17507,
    "h": 271
  },
  "luminance": 0.05811
}

Semantic roles & 50–950 ramp

primary
#2A36A4
secondary
#C1B869
accent
#D345E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A36A4

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

Preview Lab → · Contrast checker → · Palette generator →

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