#2A3184#2A3184

#2A3184 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.137 H 273.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2A3184
RGBrgb(42, 49, 132)
HSLhsl(235, 52%, 34%)
HSVhsv(235, 68%, 52%)
CMYKcmyk(68.2%, 62.9%, 0%, 48.2%)
CIE-LABlab(24.81, 25.55, -47.60)
CIE-LCHlch(24.81, 54.02, 298.23°)
OKLaboklab(36.2% 0.0087 -0.1372)
OKLCHoklch(36.2% 0.137 273.6)
XYZxyz(6.2166, 4.3543, 22.3382)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3184 #847D2A
analogous
#2A5E84 #2A3184 #502A84
triadic
#2A3184 #842A31 #31842A
tetradic
#2A3184 #842A5E #847D2A #2A8450
square
#2A3184 #842A5E #847D2A #2A8450
split-complementary
#2A3184 #84502A #5E842A
monochromatic
#0C0F27 #1B2056 #2A3184 #3942B2 #5D66CB

Accessibility & contrast

On white

11.22
#2A3184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A3184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3184
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3184#FFFFFF#000000##FFFFFF
##2A31841.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3184;
/* rgb */ color: rgb(42, 49, 132);
/* oklch */ color: oklch(36.2% 0.137 273.6);
Tailwind
colors: {
  custom: {
    50: '#6f69a9',
    500: '#2a3184',
    950: '#000000',
  },
}
SCSS
$custom: #2a3184;
$custom-light: #6f69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3184",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 132
  },
  "hsl": {
    "h": 235.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36202,
    "c": 0.13745,
    "h": 273.6
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#2A3184
secondary
#B1AA59
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3184

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

Preview Lab → · Contrast checker → · Palette generator →

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