#2A3399#2A3399

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

Color values

HEX#2A3399
RGBrgb(42, 51, 153)
HSLhsl(235, 57%, 38%)
HSVhsv(235, 73%, 60%)
CMYKcmyk(72.5%, 66.7%, 0%, 40%)
CIE-LABlab(27.18, 31.95, -56.71)
CIE-LCHlch(27.18, 65.09, 299.40°)
OKLaboklab(38.52% 0.0059 -0.1639)
OKLCHoklch(38.52% 0.164 272.1)
XYZxyz(7.8865, 5.1590, 30.7110)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3399 #99902A
analogous
#2A6A99 #2A3399 #582A99
triadic
#2A3399 #992A33 #33992A
tetradic
#2A3399 #992A6A #99902A #2A9958
square
#2A3399 #992A6A #99902A #2A9958
split-complementary
#2A3399 #99582A #6A992A
monochromatic
#101339 #1D2369 #2A3399 #3844C8 #6871D6

Accessibility & contrast

On white

10.33
#2A3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3399
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3399#FFFFFF#000000##FFFFFF
##2A33991.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3399;
/* rgb */ color: rgb(42, 51, 153);
/* oklch */ color: oklch(38.5% 0.164 272.1);
Tailwind
colors: {
  custom: {
    50: '#746bb8',
    500: '#2a3399',
    950: '#000000',
  },
}
SCSS
$custom: #2a3399;
$custom-light: #746bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3399",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 235.135,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38521,
    "c": 0.16398,
    "h": 272.1
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#2A3399
secondary
#BCB563
accent
#D448E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3399

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

Preview Lab → · Contrast checker → · Palette generator →

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