#2A3498#2A3498

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

Color values

HEX#2A3498
RGBrgb(42, 52, 152)
HSLhsl(235, 57%, 38%)
HSVhsv(235, 72%, 60%)
CMYKcmyk(72.4%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.34, 30.93, -55.84)
CIE-LCHlch(27.34, 63.84, 298.98°)
OKLaboklab(38.61% 0.0053 -0.1613)
OKLCHoklch(38.61% 0.161 271.9)
XYZxyz(7.8484, 5.2144, 30.2925)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3498 #988E2A
analogous
#2A6B98 #2A3498 #572A98
triadic
#2A3498 #982A34 #34982A
tetradic
#2A3498 #982A6B #988E2A #2A9857
square
#2A3498 #982A6B #988E2A #2A9857
split-complementary
#2A3498 #98572A #6B982A
monochromatic
#101338 #1D2468 #2A3498 #3744C8 #6771D5

Accessibility & contrast

On white

10.28
#2A3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3498
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3498#FFFFFF#000000##FFFFFF
##2A34981.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3498;
/* rgb */ color: rgb(42, 52, 152);
/* oklch */ color: oklch(38.6% 0.161 271.9);
Tailwind
colors: {
  custom: {
    50: '#746bb7',
    500: '#2a3498',
    950: '#000000',
  },
}
SCSS
$custom: #2a3498;
$custom-light: #746bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3498",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 234.545,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.16143,
    "h": 271.9
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3498

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

Preview Lab → · Contrast checker → · Palette generator →

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