#2A3886#2A3886

#2A3886 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.131 H 271.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2A3886
RGBrgb(42, 56, 134)
HSLhsl(231, 52%, 35%)
HSVhsv(231, 69%, 53%)
CMYKcmyk(68.7%, 58.2%, 0%, 47.5%)
CIE-LABlab(26.85, 21.54, -45.52)
CIE-LCHlch(26.85, 50.36, 295.32°)
OKLaboklab(37.77% 0.0024 -0.131)
OKLCHoklch(37.77% 0.131 271.1)
XYZxyz(6.6706, 5.0412, 23.1711)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3886 #86782A
analogous
#2A6686 #2A3886 #4A2A86
triadic
#2A3886 #862A38 #38862A
tetradic
#2A3886 #862A66 #86782A #2A864A
square
#2A3886 #862A66 #86782A #2A864A
split-complementary
#2A3886 #864A2A #66862A
monochromatic
#0D1129 #1B2557 #2A3886 #394BB5 #5E6FCD

Accessibility & contrast

On white

10.46
#2A3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A3886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3886
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3886#FFFFFF#000000##FFFFFF
##2A38861.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3886;
/* rgb */ color: rgb(42, 56, 134);
/* oklch */ color: oklch(37.8% 0.131 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f6eaa',
    500: '#2a3886',
    950: '#000000',
  },
}
SCSS
$custom: #2a3886;
$custom-light: #6f6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3886",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 230.87,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3777,
    "c": 0.13102,
    "h": 271.1
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#2A3886
secondary
#B2A55A
accent
#C64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3886

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

Preview Lab → · Contrast checker → · Palette generator →

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