#2A3791#2A3791

#2A3791 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.148 H 271.3°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2A3791
RGBrgb(42, 55, 145)
HSLhsl(232, 55%, 37%)
HSVhsv(232, 71%, 57%)
CMYKcmyk(71%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.49, 26.35, -51.30)
CIE-LCHlch(27.49, 57.68, 297.19°)
OKLaboklab(38.52% 0.0034 -0.148)
OKLCHoklch(38.52% 0.148 271.3)
XYZxyz(7.4301, 5.2682, 27.4079)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3791 #91842A
analogous
#2A6B91 #2A3791 #512A91
triadic
#2A3791 #912A37 #37912A
tetradic
#2A3791 #912A6B #91842A #2A9151
square
#2A3791 #912A6B #91842A #2A9151
split-complementary
#2A3791 #91512A #6B912A
monochromatic
#0F1332 #1C2562 #2A3791 #3849C0 #6371D2

Accessibility & contrast

On white

10.22
#2A3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3791
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3791#FFFFFF#000000##FFFFFF
##2A37911.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3791;
/* rgb */ color: rgb(42, 55, 145);
/* oklch */ color: oklch(38.5% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#726db2',
    500: '#2a3791',
    950: '#000000',
  },
}
SCSS
$custom: #2a3791;
$custom-light: #726db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3791",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 232.427,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38524,
    "c": 0.14804,
    "h": 271.3
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#2A3791
secondary
#B8AD5F
accent
#CC49DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3791

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

Preview Lab → · Contrast checker → · Palette generator →

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