#2A3786#2A3786

#2A3786 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.132 H 271.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2A3786
RGBrgb(42, 55, 134)
HSLhsl(232, 52%, 35%)
HSVhsv(232, 69%, 53%)
CMYKcmyk(68.7%, 59%, 0%, 47.5%)
CIE-LABlab(26.58, 22.22, -45.97)
CIE-LCHlch(26.58, 51.06, 295.80°)
OKLaboklab(37.57% 0.0033 -0.1323)
OKLCHoklch(37.57% 0.132 271.4)
XYZxyz(6.6227, 4.9452, 23.1551)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3786 #86792A
analogous
#2A6586 #2A3786 #4B2A86
triadic
#2A3786 #862A37 #37862A
tetradic
#2A3786 #862A65 #86792A #2A864B
square
#2A3786 #862A65 #86792A #2A864B
split-complementary
#2A3786 #864B2A #65862A
monochromatic
#0D1129 #1B2457 #2A3786 #394AB5 #5E6ECD

Accessibility & contrast

On white

10.56
#2A3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3786
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3786#FFFFFF#000000##FFFFFF
##2A37861.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3786;
/* rgb */ color: rgb(42, 55, 134);
/* oklch */ color: oklch(37.6% 0.132 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f6daa',
    500: '#2a3786',
    950: '#000000',
  },
}
SCSS
$custom: #2a3786;
$custom-light: #6f6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3786",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 231.522,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37566,
    "c": 0.13236,
    "h": 271.4
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#2A3786
secondary
#B2A65A
accent
#C74CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3786

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

Preview Lab → · Contrast checker → · Palette generator →

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