#2A3799#2A3799

#2A3799 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.159 H 271.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2A3799
RGBrgb(42, 55, 153)
HSLhsl(233, 57%, 38%)
HSVhsv(233, 73%, 60%)
CMYKcmyk(72.5%, 64.1%, 0%, 40%)
CIE-LABlab(28.18, 29.33, -55.08)
CIE-LCHlch(28.18, 62.40, 298.03°)
OKLaboklab(39.25% 0.0031 -0.1591)
OKLCHoklch(39.25% 0.159 271.1)
XYZxyz(8.0689, 5.5237, 30.7718)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3799 #998C2A
analogous
#2A6E99 #2A3799 #542A99
triadic
#2A3799 #992A37 #37992A
tetradic
#2A3799 #992A6E #998C2A #2A9954
square
#2A3799 #992A6E #998C2A #2A9954
split-complementary
#2A3799 #99542A #6E992A
monochromatic
#101439 #1D2669 #2A3799 #3849C8 #6875D6

Accessibility & contrast

On white

9.98
#2A3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3799
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3799#FFFFFF#000000##FFFFFF
##2A37991.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3799;
/* rgb */ color: rgb(42, 55, 153);
/* oklch */ color: oklch(39.3% 0.159 271.1);
Tailwind
colors: {
  custom: {
    50: '#746db8',
    500: '#2a3799',
    950: '#000000',
  },
}
SCSS
$custom: #2a3799;
$custom-light: #746db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3799",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 232.973,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3925,
    "c": 0.15911,
    "h": 271.1
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#2A3799
secondary
#BCB163
accent
#CE48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3799

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

Preview Lab → · Contrast checker → · Palette generator →

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