#2A3396#2A3396

#2A3396 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.160 H 272.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2A3396
RGBrgb(42, 51, 150)
HSLhsl(235, 56%, 38%)
HSVhsv(235, 72%, 59%)
CMYKcmyk(72%, 66%, 0%, 41.2%)
CIE-LABlab(26.91, 30.85, -55.32)
CIE-LCHlch(26.91, 63.34, 299.15°)
OKLaboklab(38.24% 0.0062 -0.1598)
OKLCHoklch(38.24% 0.16 272.2)
XYZxyz(7.6418, 5.0611, 29.4224)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3396 #968D2A
analogous
#2A6996 #2A3396 #572A96
triadic
#2A3396 #962A33 #33962A
tetradic
#2A3396 #962A69 #968D2A #2A9657
square
#2A3396 #962A69 #968D2A #2A9657
split-complementary
#2A3396 #96572A #69962A
monochromatic
#0F1236 #1D2366 #2A3396 #3743C6 #666FD4

Accessibility & contrast

On white

10.44
#2A3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3396
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3396#FFFFFF#000000##FFFFFF
##2A33961.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3396;
/* rgb */ color: rgb(42, 51, 150);
/* oklch */ color: oklch(38.2% 0.160 272.2);
Tailwind
colors: {
  custom: {
    50: '#736bb6',
    500: '#2a3396',
    950: '#000000',
  },
}
SCSS
$custom: #2a3396;
$custom-light: #736bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3396",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 235,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38236,
    "c": 0.15993,
    "h": 272.2
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#2A3396
secondary
#BAB361
accent
#D348E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3396

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

Preview Lab → · Contrast checker → · Palette generator →

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