#2A3882#2A3882

#2A3882 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.125 H 271.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2A3882
RGBrgb(42, 56, 130)
HSLhsl(230, 51%, 34%)
HSVhsv(230, 68%, 51%)
CMYKcmyk(67.7%, 56.9%, 0%, 49%)
CIE-LABlab(26.54, 20.02, -43.53)
CIE-LCHlch(26.54, 47.92, 294.70°)
OKLaboklab(37.44% 0.0023 -0.1251)
OKLCHoklch(37.44% 0.125 271)
XYZxyz(6.3969, 4.9317, 21.7296)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3882 #82742A
analogous
#2A6482 #2A3882 #482A82
triadic
#2A3882 #822A38 #38822A
tetradic
#2A3882 #822A64 #82742A #2A8248
square
#2A3882 #822A64 #82742A #2A8248
split-complementary
#2A3882 #82482A #64822A
monochromatic
#0C1025 #1B2454 #2A3882 #394CB0 #5C6ECA

Accessibility & contrast

On white

10.57
#2A3882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3882
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3882#FFFFFF#000000##FFFFFF
##2A38821.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3882;
/* rgb */ color: rgb(42, 56, 130);
/* oklch */ color: oklch(37.4% 0.125 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6ea7',
    500: '#2a3882',
    950: '#000000',
  },
}
SCSS
$custom: #2a3882;
$custom-light: #6e6ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3882",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 130
  },
  "hsl": {
    "h": 230.455,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37438,
    "c": 0.12516,
    "h": 271
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#2A3882
secondary
#B0A258
accent
#C44DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3882

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

Preview Lab → · Contrast checker → · Palette generator →

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