#2A3598#2A3598

#2A3598 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.160 H 271.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2A3598
RGBrgb(42, 53, 152)
HSLhsl(234, 57%, 38%)
HSVhsv(234, 72%, 60%)
CMYKcmyk(72.4%, 65.1%, 0%, 40.4%)
CIE-LABlab(27.59, 30.28, -55.44)
CIE-LCHlch(27.59, 63.17, 298.64°)
OKLaboklab(38.79% 0.0046 -0.1601)
OKLCHoklch(38.79% 0.16 271.6)
XYZxyz(7.8935, 5.3047, 30.3076)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3598 #988D2A
analogous
#2A6C98 #2A3598 #562A98
triadic
#2A3598 #982A35 #35982A
tetradic
#2A3598 #982A6C #988D2A #2A9856
square
#2A3598 #982A6C #988D2A #2A9856
split-complementary
#2A3598 #98562A #6C982A
monochromatic
#101438 #1D2468 #2A3598 #3746C8 #6772D5

Accessibility & contrast

On white

10.19
#2A3598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A3598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3598
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3598#FFFFFF#000000##FFFFFF
##2A35981.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3598;
/* rgb */ color: rgb(42, 53, 152);
/* oklch */ color: oklch(38.8% 0.160 271.6);
Tailwind
colors: {
  custom: {
    50: '#746cb7',
    500: '#2a3598',
    950: '#000000',
  },
}
SCSS
$custom: #2a3598;
$custom-light: #746cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3598",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 152
  },
  "hsl": {
    "h": 234,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38787,
    "c": 0.16021,
    "h": 271.6
  },
  "luminance": 0.05305
}

Semantic roles & 50–950 ramp

primary
#2A3598
secondary
#BBB262
accent
#D148E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3598

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

Preview Lab → · Contrast checker → · Palette generator →

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