#2A3881#2A3881

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

Color values

HEX#2A3881
RGBrgb(42, 56, 129)
HSLhsl(230, 51%, 34%)
HSVhsv(230, 67%, 51%)
CMYKcmyk(67.4%, 56.6%, 0%, 49.4%)
CIE-LABlab(26.46, 19.64, -43.03)
CIE-LCHlch(26.46, 47.30, 294.54°)
OKLaboklab(37.35% 0.0022 -0.1237)
OKLCHoklch(37.35% 0.124 271)
XYZxyz(6.3301, 4.9050, 21.3778)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3881 #81732A
analogous
#2A6381 #2A3881 #472A81
triadic
#2A3881 #812A38 #38812A
tetradic
#2A3881 #812A63 #81732A #2A8147
square
#2A3881 #812A63 #81732A #2A8147
split-complementary
#2A3881 #81472A #63812A
monochromatic
#0C1025 #1B2453 #2A3881 #394CAF #5C6DCA

Accessibility & contrast

On white

10.60
#2A3881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3881
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3881#FFFFFF#000000##FFFFFF
##2A38811.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014384
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3881;
/* rgb */ color: rgb(42, 56, 129);
/* oklch */ color: oklch(37.4% 0.124 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6ea6',
    500: '#2a3881',
    950: '#000000',
  },
}
SCSS
$custom: #2a3881;
$custom-light: #6e6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3881",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 129
  },
  "hsl": {
    "h": 230.345,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37355,
    "c": 0.12369,
    "h": 271
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#2A3881
secondary
#AFA157
accent
#C44DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3881

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

Preview Lab → · Contrast checker → · Palette generator →

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