#2A3384#2A3384

#2A3384 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.135 H 273.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A3384
RGBrgb(42, 51, 132)
HSLhsl(234, 52%, 34%)
HSVhsv(234, 68%, 52%)
CMYKcmyk(68.2%, 61.4%, 0%, 48.2%)
CIE-LABlab(25.34, 24.20, -46.74)
CIE-LCHlch(25.34, 52.63, 297.37°)
OKLaboklab(36.59% 0.0069 -0.1346)
OKLCHoklch(36.59% 0.135 273)
XYZxyz(6.3021, 4.5253, 22.3667)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3384 #847B2A
analogous
#2A6084 #2A3384 #4E2A84
triadic
#2A3384 #842A33 #33842A
tetradic
#2A3384 #842A60 #847B2A #2A844E
square
#2A3384 #842A60 #847B2A #2A844E
split-complementary
#2A3384 #844E2A #60842A
monochromatic
#0C0F27 #1B2156 #2A3384 #3945B2 #5D68CB

Accessibility & contrast

On white

11.02
#2A3384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A3384 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3384
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3384#FFFFFF#000000##FFFFFF
##2A33841.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#004756
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3384;
/* rgb */ color: rgb(42, 51, 132);
/* oklch */ color: oklch(36.6% 0.135 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f6aa8',
    500: '#2a3384',
    950: '#000000',
  },
}
SCSS
$custom: #2a3384;
$custom-light: #6f6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3384",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 132
  },
  "hsl": {
    "h": 234,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36592,
    "c": 0.13481,
    "h": 273
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#2A3384
secondary
#B1A859
accent
#CD4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3384

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

Preview Lab → · Contrast checker → · Palette generator →

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