#2A3784#2A3784

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

Color values

HEX#2A3784
RGBrgb(42, 55, 132)
HSLhsl(231, 52%, 34%)
HSVhsv(231, 68%, 52%)
CMYKcmyk(68.2%, 58.3%, 0%, 48.2%)
CIE-LABlab(26.42, 21.47, -44.98)
CIE-LCHlch(26.42, 49.84, 295.51°)
OKLaboklab(37.4% 0.0033 -0.1294)
OKLCHoklch(37.4% 0.129 271.5)
XYZxyz(6.4845, 4.8900, 22.4275)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3784 #84772A
analogous
#2A6484 #2A3784 #4A2A84
triadic
#2A3784 #842A37 #37842A
tetradic
#2A3784 #842A64 #84772A #2A844A
square
#2A3784 #842A64 #84772A #2A844A
split-complementary
#2A3784 #844A2A #64842A
monochromatic
#0C1027 #1B2456 #2A3784 #394AB2 #5D6DCB

Accessibility & contrast

On white

10.62
#2A3784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3784
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3784#FFFFFF#000000##FFFFFF
##2A37841.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3784;
/* rgb */ color: rgb(42, 55, 132);
/* oklch */ color: oklch(37.4% 0.129 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f6da8',
    500: '#2a3784',
    950: '#000000',
  },
}
SCSS
$custom: #2a3784;
$custom-light: #6f6da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3784",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 231.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37397,
    "c": 0.12945,
    "h": 271.5
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#2A3784
secondary
#B1A459
accent
#C74DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3784

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

Preview Lab → · Contrast checker → · Palette generator →

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