#2A3792#2A3792

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

Color values

HEX#2A3792
RGBrgb(42, 55, 146)
HSLhsl(233, 55%, 37%)
HSVhsv(233, 71%, 57%)
CMYKcmyk(71.2%, 62.3%, 0%, 42.7%)
CIE-LABlab(27.57, 26.73, -51.78)
CIE-LCHlch(27.57, 58.27, 297.30°)
OKLaboklab(38.61% 0.0033 -0.1494)
OKLCHoklch(38.61% 0.149 271.3)
XYZxyz(7.5076, 5.2992, 27.8158)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3792 #92852A
analogous
#2A6B92 #2A3792 #512A92
triadic
#2A3792 #922A37 #37922A
tetradic
#2A3792 #922A6B #92852A #2A9251
square
#2A3792 #922A6B #92852A #2A9251
split-complementary
#2A3792 #92512A #6B922A
monochromatic
#0F1333 #1C2562 #2A3792 #3849C2 #6472D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A3792#FFFFFF#000000##FFFFFF
##2A37921.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)
#004695
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3792;
/* rgb */ color: rgb(42, 55, 146);
/* oklch */ color: oklch(38.6% 0.149 271.3);
Tailwind
colors: {
  custom: {
    50: '#726db3',
    500: '#2a3792',
    950: '#000000',
  },
}
SCSS
$custom: #2a3792;
$custom-light: #726db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3792",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 146
  },
  "hsl": {
    "h": 232.5,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.14944,
    "h": 271.3
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3792

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

Preview Lab → · Contrast checker → · Palette generator →

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