#2A3884#2A3884

#2A3884 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.128 H 271.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2A3884
RGBrgb(42, 56, 132)
HSLhsl(231, 52%, 34%)
HSVhsv(231, 68%, 52%)
CMYKcmyk(68.2%, 57.6%, 0%, 48.2%)
CIE-LABlab(26.69, 20.78, -44.53)
CIE-LCHlch(26.69, 49.14, 295.02°)
OKLaboklab(37.6% 0.0023 -0.1281)
OKLCHoklch(37.6% 0.128 271)
XYZxyz(6.5325, 4.9859, 22.4434)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3884 #84762A
analogous
#2A6584 #2A3884 #492A84
triadic
#2A3884 #842A38 #38842A
tetradic
#2A3884 #842A65 #84762A #2A8449
square
#2A3884 #842A65 #84762A #2A8449
split-complementary
#2A3884 #84492A #65842A
monochromatic
#0C1127 #1B2456 #2A3884 #394CB2 #5D6ECB

Accessibility & contrast

On white

10.51
#2A3884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A3884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3884
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3884#FFFFFF#000000##FFFFFF
##2A38841.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3884;
/* rgb */ color: rgb(42, 56, 132);
/* oklch */ color: oklch(37.6% 0.128 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f6ea8',
    500: '#2a3884',
    950: '#000000',
  },
}
SCSS
$custom: #2a3884;
$custom-light: #6f6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3884",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 132
  },
  "hsl": {
    "h": 230.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.1281,
    "h": 271
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#2A3884
secondary
#B1A359
accent
#C54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3884

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

Preview Lab → · Contrast checker → · Palette generator →

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