#2A3186#2A3186

#2A3186 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.140 H 273.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2A3186
RGBrgb(42, 49, 134)
HSLhsl(235, 52%, 35%)
HSVhsv(235, 69%, 53%)
CMYKcmyk(68.7%, 63.4%, 0%, 47.5%)
CIE-LABlab(24.98, 26.29, -48.57)
CIE-LCHlch(24.98, 55.23, 298.43°)
OKLaboklab(36.38% 0.0086 -0.14)
OKLCHoklch(36.38% 0.14 273.5)
XYZxyz(6.3548, 4.4095, 23.0659)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3186 #867F2A
analogous
#2A5F86 #2A3186 #512A86
triadic
#2A3186 #862A31 #31862A
tetradic
#2A3186 #862A5F #867F2A #2A8651
square
#2A3186 #862A5F #867F2A #2A8651
split-complementary
#2A3186 #86512A #5F862A
monochromatic
#0D0F29 #1B2057 #2A3186 #3942B5 #5E66CD

Accessibility & contrast

On white

11.16
#2A3186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A3186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3186
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3186#FFFFFF#000000##FFFFFF
##2A31861.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3186;
/* rgb */ color: rgb(42, 49, 134);
/* oklch */ color: oklch(36.4% 0.140 273.5);
Tailwind
colors: {
  custom: {
    50: '#7069aa',
    500: '#2a3186',
    950: '#000000',
  },
}
SCSS
$custom: #2a3186;
$custom-light: #7069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3186",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 235.435,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36382,
    "c": 0.14029,
    "h": 273.5
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#2A3186
secondary
#B2AB5A
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3186

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

Preview Lab → · Contrast checker → · Palette generator →

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