#2A2D84#2A2D84

#2A2D84 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.143 H 274.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2A2D84
RGBrgb(42, 45, 132)
HSLhsl(238, 52%, 34%)
HSVhsv(238, 68%, 52%)
CMYKcmyk(68.2%, 65.9%, 0%, 48.2%)
CIE-LABlab(23.78, 28.22, -49.27)
CIE-LCHlch(23.78, 56.78, 299.81°)
OKLaboklab(35.45% 0.0121 -0.1421)
OKLCHoklch(35.45% 0.143 274.9)
XYZxyz(6.0567, 4.0344, 22.2849)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D84 #84812A
analogous
#2A5A84 #2A2D84 #542A84
triadic
#2A2D84 #842A2D #2D842A
tetradic
#2A2D84 #842A5A #84812A #2A8454
square
#2A2D84 #842A5A #84812A #2A8454
split-complementary
#2A2D84 #84542A #5A842A
monochromatic
#0C0D27 #1B1D56 #2A2D84 #393DB2 #5D61CB

Accessibility & contrast

On white

11.62
#2A2D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D84
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D84#FFFFFF#000000##FFFFFF
##2A2D841.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003582
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2d84;
/* rgb */ color: rgb(42, 45, 132);
/* oklch */ color: oklch(35.4% 0.143 274.9);
Tailwind
colors: {
  custom: {
    50: '#7066a9',
    500: '#2a2d84',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d84;
$custom-light: #7066a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d84",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 238,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.14263,
    "h": 274.9
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#2A2D84
secondary
#B1AE59
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2D84

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

Preview Lab → · Contrast checker → · Palette generator →

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