#2A3798#2A3798

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

Color values

HEX#2A3798
RGBrgb(42, 55, 152)
HSLhsl(233, 57%, 38%)
HSVhsv(233, 72%, 60%)
CMYKcmyk(72.4%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.09, 28.96, -54.61)
CIE-LCHlch(28.09, 61.82, 297.93°)
OKLaboklab(39.16% 0.0032 -0.1577)
OKLCHoklch(39.16% 0.158 271.1)
XYZxyz(7.9866, 5.4908, 30.3386)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3798 #988B2A
analogous
#2A6E98 #2A3798 #542A98
triadic
#2A3798 #982A37 #37982A
tetradic
#2A3798 #982A6E #988B2A #2A9854
square
#2A3798 #982A6E #988B2A #2A9854
split-complementary
#2A3798 #98542A #6E982A
monochromatic
#101438 #1D2668 #2A3798 #3748C8 #6774D5

Accessibility & contrast

On white

10.01
#2A3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3798
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3798#FFFFFF#000000##FFFFFF
##2A37981.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3798;
/* rgb */ color: rgb(42, 55, 152);
/* oklch */ color: oklch(39.2% 0.158 271.1);
Tailwind
colors: {
  custom: {
    50: '#736db7',
    500: '#2a3798',
    950: '#000000',
  },
}
SCSS
$custom: #2a3798;
$custom-light: #736db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3798",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 232.909,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.15774,
    "h": 271.1
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3798

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

Preview Lab → · Contrast checker → · Palette generator →

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