#2A3386#2A3386

#2A3386 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.138 H 272.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2A3386
RGBrgb(42, 51, 134)
HSLhsl(234, 52%, 35%)
HSVhsv(234, 69%, 53%)
CMYKcmyk(68.7%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.50, 24.94, -47.71)
CIE-LCHlch(25.50, 53.84, 297.60°)
OKLaboklab(36.77% 0.0069 -0.1375)
OKLCHoklch(36.77% 0.138 272.9)
XYZxyz(6.4403, 4.5805, 23.0944)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3386 #867D2A
analogous
#2A6186 #2A3386 #4F2A86
triadic
#2A3386 #862A33 #33862A
tetradic
#2A3386 #862A61 #867D2A #2A864F
square
#2A3386 #862A61 #867D2A #2A864F
split-complementary
#2A3386 #864F2A #61862A
monochromatic
#0D1029 #1B2157 #2A3386 #3945B5 #5E69CD

Accessibility & contrast

On white

10.96
#2A3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3386
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3386#FFFFFF#000000##FFFFFF
##2A33861.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3386;
/* rgb */ color: rgb(42, 51, 134);
/* oklch */ color: oklch(36.8% 0.138 272.9);
Tailwind
colors: {
  custom: {
    50: '#706aaa',
    500: '#2a3386',
    950: '#000000',
  },
}
SCSS
$custom: #2a3386;
$custom-light: #706aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3386",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 234.13,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36768,
    "c": 0.13767,
    "h": 272.9
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#2A3386
secondary
#B2AA5A
accent
#CE4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3386

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

Preview Lab → · Contrast checker → · Palette generator →

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