#2A36AB#2A36AB

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

Color values

HEX#2A36AB
RGBrgb(42, 54, 171)
HSLhsl(234, 61%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(75.4%, 68.4%, 0%, 32.9%)
CIE-LABlab(29.59, 36.53, -63.66)
CIE-LCHlch(29.59, 73.40, 299.85°)
OKLaboklab(40.79% 0.0025 -0.1842)
OKLCHoklch(40.79% 0.184 270.8)
XYZxyz(9.6222, 6.0698, 39.1847)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A36AB #AB9F2A
analogous
#2A76AB #2A36AB #5F2AAB
triadic
#2A36AB #AB2A36 #36AB2A
tetradic
#2A36AB #AB2A76 #AB9F2A #2AAB5F
square
#2A36AB #AB2A76 #AB9F2A #2AAB5F
split-complementary
#2A36AB #AB5F2A #76AB2A
monochromatic
#121749 #1E267A #2A36AB #424FD1 #737DDD

Accessibility & contrast

On white

9.48
#2A36AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A36AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A36AB
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A36AB#FFFFFF#000000##FFFFFF
##2A36AB1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a36ab;
/* rgb */ color: rgb(42, 54, 171);
/* oklch */ color: oklch(40.8% 0.184 270.8);
Tailwind
colors: {
  custom: {
    50: '#786dc5',
    500: '#2a36ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a36ab;
$custom-light: #786dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a36ab",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 234.419,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40786,
    "c": 0.18421,
    "h": 270.8
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#2A36AB
secondary
#C4BC6D
accent
#D544E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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