#2A3497#2A3497

#2A3497 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.160 H 271.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2A3497
RGBrgb(42, 52, 151)
HSLhsl(234, 56%, 38%)
HSVhsv(234, 72%, 59%)
CMYKcmyk(72.2%, 65.6%, 0%, 40.8%)
CIE-LABlab(27.25, 30.57, -55.38)
CIE-LCHlch(27.25, 63.26, 298.90°)
OKLaboklab(38.51% 0.0054 -0.16)
OKLCHoklch(38.51% 0.16 271.9)
XYZxyz(7.7669, 5.1818, 29.8630)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3497 #978D2A
analogous
#2A6B97 #2A3497 #562A97
triadic
#2A3497 #972A34 #34972A
tetradic
#2A3497 #972A6B #978D2A #2A9756
square
#2A3497 #972A6B #978D2A #2A9756
split-complementary
#2A3497 #97562A #6B972A
monochromatic
#0F1337 #1D2467 #2A3497 #3744C7 #6771D5

Accessibility & contrast

On white

10.31
#2A3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A3497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3497
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3497#FFFFFF#000000##FFFFFF
##2A34971.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3497;
/* rgb */ color: rgb(42, 52, 151);
/* oklch */ color: oklch(38.5% 0.160 271.9);
Tailwind
colors: {
  custom: {
    50: '#746bb6',
    500: '#2a3497',
    950: '#000000',
  },
}
SCSS
$custom: #2a3497;
$custom-light: #746bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3497",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 234.495,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38511,
    "c": 0.16007,
    "h": 271.9
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#2A3497
secondary
#BBB362
accent
#D248E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3497

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

Preview Lab → · Contrast checker → · Palette generator →

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